Bug 128948 - aliases defined or not depending on a value of $TERM
Summary: aliases defined or not depending on a value of $TERM
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-01 22:04 UTC by Michal Jaegermann
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 5.2.1-19
Clone Of:
Environment:
Last Closed: 2004-08-04 15:19:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2004-08-01 22:04:43 UTC
Description of problem:

/etc/profile.d/colorls.sh has the following code:

eval `dircolors --sh "$COLORS"`
[ -z "$LS_COLORS" ] && return

and this means that if $TERM does not show up in "$COLORS" as
"colorizable" then, quite surprisingly, aliases 'll' and 'l.'
are not defined at all.  This happened when after recent updates
FC3t1 suddenly started to sport TERM=gnome.

The code really should be:

....
alias ll='ls -l' 2>/dev/null
alias l.='ls -d .*' 2>/dev/null
eval `dircolors --sh "$COLORS"`
[ -z "$LS_COLORS" ] && return
....

with 'll' and 'l.' redefined if it was decided that adding
'--color=tty' is a good idea.

The situation is really the same in /etc/profile.d/colorls.csh

Version-Release number of selected component (if applicable):
coreutils-5.2.1-18 and earlier too

Comment 1 Tim Waugh 2004-08-03 11:57:30 UTC
Fixed in CVS.  Thanks for the report.

Comment 2 Tim Waugh 2004-08-04 15:19:25 UTC
Fixed package is 5.2.1-19.


Note You need to log in before you can comment on or make changes to this bug.