about summary refs log tree commit diff
path: root/tests/nix-shell.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/nix-shell.sh
parentae1e4dfad29e24739c7f280b1a96e16ba1b54d3a (diff)
nix-shell: In #! mode, pass the last argument
"i < argc - 1" should be "i < argc".
Diffstat (limited to 'tests/nix-shell.sh')
-rw-r--r--tests/nix-shell.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index 12a0ecd03c13..26cc521bbcbf 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -17,5 +17,5 @@ output=$(NIX_PATH=nixpkgs=shell.nix nix-shell --pure -p foo bar --run 'echo "$(f
 sed -e "s|@ENV_PROG@|$(type -p env)|" shell.shebang.sh > $TEST_ROOT/shell.shebang.sh
 chmod a+rx $TEST_ROOT/shell.shebang.sh
 
-output=$($TEST_ROOT/shell.shebang.sh)
-[ "$output" = "foo bar" ]
+output=$($TEST_ROOT/shell.shebang.sh abc def)
+[ "$output" = "foo bar abc def" ]