mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
nix-shell: In #! mode, pass the last argument
"i < argc - 1" should be "i < argc".
This commit is contained in:
parent
ae1e4dfad2
commit
c287e797a8
3 changed files with 14 additions and 16 deletions
|
@ -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) $@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue