On Tue, Sep 03, 2002 at 09:41:52PM +1200, Keith McGavin wrote:
> On Tue, 3 Sep 2002, Timothy Musson wrote:
> > alias ls='ls --color=auto'

> what could 'ls --color=auto' be useful for other than being neater
> for not having escape codes? The =auto output in my kdedit and
> gedit editors is plain black print.
 
> 'ls --color' defaults as 'ls --color=always' so in xterm generally
> the two options will work the same.

Hi Keith,

I don't know if there are any other uses :)
I mentioned it only because it's in a ~/.bashrc, where it could
cause occasional weirdness without auto. Say you want to send the
output of ls straight to your printer...  or maybe you'll come
across a shell script that needs to pipe ls through grep (for
example) and mucks up due to the escape codes. With auto, you're
just avoiding potential hassle.


> > Usually, ~/.bash_profile (or ~/.profile) sources ~/.bashrc

> Slackware's default install uses /etc/profile so I was putting
> things in that perspective.

I admit, I only know my way around Debian (and I'm no guru there,
either. Sooo... :)

Bedtime.

Tim
-- 
Timothy Musson  -  [EMAIL PROTECTED]
http://homepages.ihug.co.nz/~trmusson/
A day for firm decisions!!!! Or is it?

Reply via email to