Hi, On Thu, Sep 16, 2004 at 05:21:54PM +0200, Alfred M. Szmidt wrote: > Could someone explain the following behaviour for me? Because I sure > do not understand it. > > [EMAIL PROTECTED]:/tmp/foo$ touch 1 2 3 4 5 > [EMAIL PROTECTED]:/tmp/foo$ foo=`ls` > [EMAIL PROTECTED]:/tmp/foo$ /bin/echo $foo > 1 2 3 4 5 > [EMAIL PROTECTED]:/tmp/foo$ /bin/echo "$foo" > 1 > 2 > 3 > 4 > 5
Yes, that is the way how the shell works, see e.g. "Word Splitting" chapter in the bash(1) manpage. Just repeat the test after "set -x" and you'll notice the difference. -- ldv
pgpSeFghz2vRV.pgp
Description: PGP signature
_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils