From c287e797a889202b1d603be4b445b961c37fb9b5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Jan 2017 11:40:51 +0100 Subject: nix-shell: In #! mode, pass the last argument "i < argc - 1" should be "i < argc". --- tests/shell.shebang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shell.shebang.sh') 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) $@" -- cgit 1.4.1