about summary refs log tree commit diff
path: root/tests/shell.shebang.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-01-03T10·40+0100
committerEelco Dolstra <edolstra@gmail.com>2017-01-03T10·40+0100
commitc287e797a889202b1d603be4b445b961c37fb9b5 (patch)
tree15866d304dc23c38018c0c21d14fde8a9d91b55f /tests/shell.shebang.sh
parentae1e4dfad29e24739c7f280b1a96e16ba1b54d3a (diff)
nix-shell: In #! mode, pass the last argument
"i < argc - 1" should be "i < argc".
Diffstat (limited to 'tests/shell.shebang.sh')
-rwxr-xr-xtests/shell.shebang.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell.shebang.sh b/tests/shell.shebang.sh
index 544e2821750f..3dadd591572d 100755
--- a/tests/shell.shebang.sh
+++ b/tests/shell.shebang.sh
@@ -1,4 +1,4 @@
 #! @ENV_PROG@ nix-shell
 #! nix-shell -I nixpkgs=shell.nix --option use-binary-caches false
 #! nix-shell --pure -i bash -p foo bar
-echo "$(foo) $(bar)"
+echo "$(foo) $(bar) $@"