Description of problem: The aliases described in /etc/profile.d/colols.sh do not get loaded at login, nor when script is run through bash. However, if another bash process is started (e.g., 'bash', 'script'), the aliases load correctly. Version-Release number of selected component (if applicable): coreutils-5.0-20 How reproducible: always Steps to Reproduce: 1. Run GNOME terminal. 2. ll 3. sh -x /etc/profile.d/colorls.sh 4. ll 5. bash 6. ll 7. exit 8. script 9. alias Actual results: Aliases are not loaded in intial GNOME terminal, even though it appears that they should be. Expected results: alias ll='ls -l --color=tty' Additional info:
Looks like a bashrc problem.
Are you logging in via GDM?
Yes I am loggin in via GDM. I think this bug was fixed in the second-to-last round of updates, but I can't confirm this until tomorrow (10/14/03). I will provide more information then.
Created attachment 99435 [details] Changes in etc to properly change ls colors --color=tty is an invalid argument for ls. The proper argument is --color=always. This file shows the changes necessary for /etc/DIR_COLORS, /etc/profile.d/colorls.sh /etc/profile.d/colorls.csh. It also adds color support for putty terminals should that be desired.
ls --color=tty *is* valid. 'always' is almost always wrong - think redirection. Please reopen if this persists with FC1, or FC2 test.