Lo all,
I've just upgraded to 12.2 on my desktop (it wasn't used before so nothing changed by me).
Anyway, all is up and running, I log in via kdm.
The bash prompt was crap, so I've changed it to user@host
wd (this is probably irrelevant).
However, I have a problem with ls. It isn't showing colours or putting symbols after filetypes.
Now, on my laptop (slack 10.2), ls looks at LS_OPTIONS and LS_COLORS. So. /etc/profile didn't set
any aliases up.
12.2 does set aliases up in /etc/profile.d/coreutils-dircolors.sh, but when I shell out, the alias command has no list. When I source /etc/profile, all works as it should.
I realise /etc/profile isn't run from a gui shell, but it does copy the environment, iirc. the LS* do have values when I do a set:
LS_COLORS='rs=0:d <snip>
LS_OPTIONS=' -F -b -T 0 --color=auto '
bash is:
john@darkstar:/etc/profile.d$ bash --version
GNU bash, version 3.1.17(2)-release (i486-slackware-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
coreutils-dircolors.sh is being run as I edited it to do alias > /tmp/FOO and it gives output as per the alias setup in the script (although the variabes aren't expanded ie show as $FOO).
~/.bashrc is:
john@darkstar:~$ cat .bashrc
PS1="\u@\h:\w$ "
eval `dircolors -b`
I've grepped every file in and under /etc for alias, with nothing of interest. strings of /bin/ls show LS_COLORS, but no LS_OPTION, fwiw. I'm out of ideas.
Any thoughts much appreciated...
John