LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2009, 11:22 AM   #1
ftumsh
LQ Newbie
 
Registered: Oct 2003
Distribution: slackware
Posts: 7

Rep: Reputation: 0
coreutils-dircolors.sh: aliases being forgotten after login. slack 12.2


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@hostwd (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

Last edited by ftumsh; 01-10-2009 at 11:25 AM.
 
Old 01-10-2009, 12:13 PM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
By "GUI shell" I presume you mean Konsole.

From the menu choose "Settings | Configure Konsole", in the "Session" page select the "Shell" session, change the command in the "Execute" field to "bash -l" (no quotes).
 
Old 01-10-2009, 12:41 PM   #3
ftumsh
LQ Newbie
 
Registered: Oct 2003
Distribution: slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by guanx View Post
By "GUI shell" I presume you mean Konsole.

From the menu choose "Settings | Configure Konsole", in the "Session" page select the "Shell" session, change the command in the "Execute" field to "bash -l" (no quotes).
Heh. Well it's rxvt. trying all the terms I get:

rxvt - not work
terminal - not work
konsole - does work! The execute above is just "bash"
xterm - not work

I never had to had options to rxvt in the past, tho I will look into it. It seems strange that bash seems to be losing the set up aliases.
Stranger still that no one else seems to be having the problem...

John
 
Old 01-10-2009, 01:21 PM   #4
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by ftumsh View Post
Heh. Well it's rxvt. trying all the terms I get:

rxvt - not work
terminal - not work
konsole - does work! The execute above is just "bash"
xterm - not work

I never had to had options to rxvt in the past, tho I will look into it. It seems strange that bash seems to be losing the set up aliases.
Stranger still that no one else seems to be having the problem...

John
rxvt -ls

This is the same as for Konsole.
 
Old 01-10-2009, 01:54 PM   #5
ftumsh
LQ Newbie
 
Registered: Oct 2003
Distribution: slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by guanx View Post
rxvt -ls

This is the same as for Konsole.
Aye, I got the above after your clue. It works, but it seems a bit of a hack.
Now I'm just curious as to what's changed.

Thank you for your time.

John
 
Old 01-10-2009, 05:11 PM   #6
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by ftumsh View Post
Aye, I got the above after your clue. It works, but it seems a bit of a hack.
Now I'm just curious as to what's changed.

Thank you for your time.

John
1. There is no hack. This is the way it works. The '-ls' option is not a fancy backdoor.

2. In your original post you did not tell us what terminal emulator you are using. And you still have not mentioned how you launched rxvt yet. It's no good manners keeping others guessing what you are doing.

Best regards,
Guanx
 
Old 01-12-2009, 04:53 PM   #7
ftumsh
LQ Newbie
 
Registered: Oct 2003
Distribution: slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by guanx View Post
1. There is no hack. This is the way it works. The '-ls' option is not a fancy backdoor.

2. In your original post you did not tell us what terminal emulator you are using. And you still have not mentioned how you launched rxvt yet. It's no good manners keeping others guessing what you are doing.

Best regards,
Guanx
1) On the contrary, this isn't the way it works. On my laptop I have no need of any switches whatsoever. ergo it is a hack to get it to work.

2)Given that 75% of emulators exhibit the problem, I should say it hasn't got anything to do with the particular emulator. Of course, needing to know how the emulator is launched presumes
a certain level of knowledge on my part. Perhaps I haven't got it. Anyway, bizarrely enough, it's in X and I launch it from a menu option. Anyway, not to worry, thanks anyway. I got it working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgotten Password of root in Fedora 8, Cant login, need it badly :( confulity Linux - General 3 09-18-2008 11:18 PM
wrap lines at 80 for long aliases in .aliases.csh jhwilliams Linux - Software 0 07-26-2007 07:49 AM
Forgotten Login Password Ubuntu 4.10 mookie2125 Ubuntu 5 07-11-2006 03:18 AM
Forgotten Webmin login passwd, how to remove it MTT1k Linux - Networking 1 12-19-2005 04:55 PM
Problem with coreutils 5.2 in Slack 10/Rune Berto Linux - Software 0 07-15-2004 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration