[18366] in Athena Bugs

home help back first fref pref prev next nref lref last post

linux : Color ls in system login script

daemon@ATHENA.MIT.EDU (Tolulope O Okusanya)
Mon Oct 2 16:18:28 2000

Message-Id: <200010022018.QAA09758@surveyor.mit.edu>
To: bugs@MIT.EDU
Date: Mon, 02 Oct 2000 16:18:23 -0400
From: Tolulope O Okusanya <tolulope@MIT.EDU>

System name:		surveyor.mit.edu
Type and version:	i586 
Display type:		XFree86 3.3.6 SVGA

Shell:			/bin/athena/tcsh
Window manager:		mwm

What were you trying to do?
Typing "ls" takes a significant amount of time if the current
directory contains several files.

What's wrong:
In the login script [/etc/csh.login], there is a section which 
sets up "ls" to color filenames upon display. The script section is

test -d /etc/profile.d
if ($status == 0) then
        set nonomatch
        foreach i ( /etc/profile.d/*.csh )
                test -f $i
                if ($status == 0) then
                        source $i
                endif
        end
        unset i nonomatch
endif

There are two files called colorls.sh and colorls.csh which alias "ls"
so that it tries to color the filename output. Doing this significantly
slows down the shell such that it appears to hang if there are several
files in the directory.

What should have happened:
There are perhaps two possible fixes to this
(1) Disable loading the colorls files by some environment variable or
    simply removing these files if they are not essential
(2) unaliasing the aliased commands ["ls", "l." and "ll"] after the 
    system files are loaded

Please describe any relevant documentation references:
	[Please replace this line with your information.]

home help back first fref pref prev next nref lref last post