2009/5/24 Raphael Geissert <[email protected]>: > Example: > $ cat test > foo=foo > echo $foo > . ./test.i $foo > echo $foo > > $ cat test.i > [ "$1" ] || foo=bar
Well, that example isn't the same as in bubbros, there we don't care about any variable's value being changed. It would rather be like this one: $ cat test ./test1 $* $ cat test1 echo $1 $ bash ./test foo foo $ dash ./test foo foo $ zsh ./test foo foo $ ksh ./test foo foo $ mksh ./test foo foo $ pdksh ./test foo foo Which works as expected with all tested interpreters. -- Siegfried-Angel Gevatter Pujals (RainCT) Ubuntu Developer. Debian Contributor. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

