[Nix-dev] slightly off topic: bash/sh quoting/arguments

Eelco Dolstra eelco.dolstra at logicblox.com
Mon Apr 2 23:33:23 CEST 2012


Hi,

On 02/04/12 23:28, Mathijs Kwik wrote:

> args1="one two"
> args2="three four"
...
> $ mycommand $args1 $args2
> You passed 2 arguments

Eh?  Unless you have set $IFS to a non-standard value, $args1 and $args2 will be
split into four arguments.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list