On Sat, 31 Dec 2005 20:38:32 +0100, Matthias Bethke wrote:

> | $ ls *.jpg | while read f; do echo "$f"; done
> | foo bar.jpg
> The quotes are useless for "echo" here, but for other commands you'll
> usually need them to keep the command form taking filenames with sapaces
> as separate arguments.

The quotes are only unnecessary for echo if filenames only contain single
spaces, multiple consecutive spaces will be converted to a single space
if not quoted.

$ echo "Hello  there"
Hello  there
$ echo Hello  there
Hello there


-- 
Neil Bothwick

Never get into fights with ugly people because they have nothing to lose.

Attachment: signature.asc
Description: PGP signature

Reply via email to