[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`.
paul
- weird echo behaviour..., Alfred M. Szmidt, 2004/09/16
- Re: weird echo behaviour..., Bob Proulx, 2004/09/16
- Re: weird echo behaviour..., Andreas Schwab, 2004/09/16
- Re: weird echo behaviour..., Dmitry V. Levin, 2004/09/17
- Re: weird echo behaviour..., P, 2004/09/17
- Re: weird echo behaviour..., Philip Rowlands, 2004/09/17