[Nix-dev] slightly off topic: bash/sh quoting/arguments
Mathijs Kwik
mathijs at bluescreen303.nl
Mon Apr 2 23:28:49 CEST 2012
Hi all,
args1="one two"
args2="three four"
$ mycommand one two three four
You passed 4 arguments
- one
- two
- three
- fout
$ mycommand $args1 $args2
You passed 2 arguments
- one two
- three four
How can I pass args1 and args2 to mycommand as 4 arguments?
I think in bash, this script might get run by /bin/sh.
Don't know if that's any different
Thanks,
Mathijs
More information about the nix-dev
mailing list