diff options
author | tv <tv@krebsco.de> | 2017-10-17 20:01:53 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-10-17 20:01:53 +0200 |
commit | 41a2f8cfa8f9ed9140f9289b03dddb68ae8becc8 (patch) | |
tree | 3e8675d77f49f5ae1361848c207ea8a0d69be447 | |
parent | 1d57d9491444f13f53216d33f950730f4eabbdf0 (diff) |
quote: init
-rw-r--r-- | shell.nix | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -143,18 +143,6 @@ let ''} ''); - # usage: quote [ARGS...] - cmds.quote = pkgs.writeDash "cmds.quote" '' - set -efu - prefix= - for x; do - y=$(${pkgs.jq}/bin/jq -nr --arg x "$x" '$x | @sh "\(.)"') - echo -n "$prefix$y" - prefix=' ' - done - echo - ''; - init.env = pkgs.writeText "init.env" /* sh */ '' export quiet export system @@ -243,6 +231,7 @@ in pkgs.stdenv.mkDerivation { fi export PATH=${lib.makeBinPath [ pkgs.populate + pkgs.quote shell.cmdspkg ]} |