bug-coreutils
[Top][All Lists]
Advanced

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

dircolors generates "uknown colorls variable su"


From: Eric Blake
Subject: dircolors generates "uknown colorls variable su"
Date: Tue, 17 Jan 2006 18:05:34 +0000

[This was originally reported on the cygwin list, but is an
upstream issue in coreutils, tcsh, or both]

-------------- Forwarded Message: --------------
From: Steve Kelem <skelem AT elementcxi DOT com>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: dircolors generates "uknown colorls variable su"
Date: Tue, 17 Jan 2006 17:22:40 +0000
> I upgraded to coreutils-5.93-2, and now when I run
> eval `dircolors -csh`
> I get
> Unknown colorls variable `su'.
> 
> The following shows what dircolors generates.
> % dircolors --csh
> setenv LS_COLORS 
> 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;0
> 1:or=40;31;01
> :su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44
> :ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;3
> 1:*.tgz=01;31:*.arj=01;31:*.taz=01;31
> :*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:
> *.rpm=01;31:*.jar=01;31:*.jpg=01;35
> :*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=
> 01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35
> :*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli
> =01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35
> :*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:'
> % dircolors --version
> dircolors (GNU coreutils) 5.93
> 
> Any idea what's wrong?

The problem is that tcsh 6.14.00 treats LS_COLORS as a magic
environment variable, also parsing it for its own use in the
tcsh builtin ls-F.  This means that coreutils dircolors, when given
an SUID coloration, will output data that is expected by coreutils
ls but unexpected by unpatched tcsh.

--
Eric Blake




reply via email to

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