[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird echo behaviour...

From: Paul Jarc
Subject: Re: weird echo behaviour...
Date: Thu, 16 Sep 2004 12:12:42 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

"Alfred M. Szmidt" <address@hidden> wrote:
>    Command substitution works by the shell creating a pipe to capture
>    the output; when ls sees that it is writing to a pipe, it defaults
>    to -1 instead of -C.
> Urgh, thanks for the explanation.  I suppose this can't be changed
> right?  Cause I think it is a annoying behaviour...

It's useful in cases like "ls | grep", etc.  SUSv3 requires the
default to be -1 except for ttys.  You can always squash the
whitespace if you want, with var=`echo $var`.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]