[95904] in RedHat Linux List
Re: CD-ROM Question + Bash Curio
daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Thu Oct 22 05:44:18 1998
Date: Thu, 22 Oct 1998 10:45:18 +0100
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: redhat-list@redhat.com
Mail-Followup-To: redhat-list@redhat.com
In-Reply-To: <362EDD95.B1F19397@netaccess.co.nz>; from David J Porter on Thu, Oct 22, 1998 at 08:24:05PM +1300
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
David J Porter writes:
>
[...]
>
> Secondly, I just noticed a curiosity WRT bash. I've got ls set up to
> colourize
> it's output, but being in a hurry managed to type '\ls' which gave an
> uncolourized listing of files. Now I know I should know why this happens but
> its baffled me for the last two days. Anyone got any ideas? [PS: I've
> defined
> an alias as "alias ls='ls --color=yes -aF'" to get the colourization
> working, if
> it makes any difference.]
This is how I understand this behaviour from my experience with bash and
tcsh: If you use a backslash in front of a command, the aliases are not
checked when executing the command. Thus, you'll get plain old ls - which
does not (as per default) support colouring.
Another example could be "alias rm='rm -i'" - if you type \rm, it'll delete
without asking, as the aliases are not checked.
HTH,
Thomas
--
"Look, ma, no obsolete quotes!"
Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.