[Top][All Lists]

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

Re:Re: the `--color' option of `ls' shadows the shortcut evaluation sche

From: Day
Subject: Re:Re: the `--color' option of `ls' shadows the shortcut evaluation scheme of `&&' and `||'
Date: Tue, 12 Feb 2008 14:30:31 +0800 (CST)

"Bob Proulx" <address@hidden> wrote´╝Ü

> How did you happen to run into using 'ls --color' in a test such as
> this?  That seems an unfortunate option choice there.  I recommend not
> using --color there.  But obviously you already thought of that and so
> I have to ask what you were doing that caused it to be there?  Why not
> simply avoid saying anything there?  Why not simply use 'ls' without
> color?  Could you say a few more words about how you came about this
> problem?

Yes, Bob. This problem came out because I set an alias for `ls' in my .bashrc 
alias ls='ls -F --color'

So when I run the script what goes in to the [] test is `ls -F --color -A 
./dir' in fact. Thus issued the problem. Thanks for your msg.

reply via email to

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