On 19. feb 2005, at 14:41, Allan Odgaard wrote:
On Feb 19, 2005, at 14:31, Sune Foldager wrote:
Sounds odd. Even if I do stuff like A='"foo bar"' ls $A I get "foo not found, bar" not found. I don't think it passes it as a single argument.
Nah, seems the quotes are the problem: % tst () { echo $1; } % foo="'this' 'is' 'a' 'test'" % tst $foo 'this'
I don't get it; this is expected behaviour, no? At least I expected this ;-). It obviously splits foo. It would still split it if you had done "'this is a' test" or similar.