LinuxQuestions.org
Help answer threads with 0 replies.
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 12-10-2013, 01:13 PM   #1
thirteen_engines
Member
 
Registered: Sep 2009
Distribution: Slackware 14.1
Posts: 118

Rep: Reputation: 20
Unexpected Bash behaviour in 14.1


Just installed Slackware 14.1 on an Asus K53E laptop to have a look. Everything works great so far .. not unexpectedly. There is however, one little thing that I have noticed which is that when I fire up KDE's Konsole only some of /etc/profile is read. The environment variables seem to be picked up ok but the prompt and aliases are not. This happens whether I log in as me or as root. The boot console doesn't suffer from this behaviour. Is this something new or have I just missed something?
 
Old 12-10-2013, 01:29 PM   #2
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Rep: Reputation: 130Reputation: 130
.profile is only read at login. Try putting aliases in .bashrc. .bashrc is loaded when you start any bash terminal.

Last edited by coldbeer; 12-10-2013 at 01:45 PM.
 
Old 12-10-2013, 03:23 PM   #3
thirteen_engines
Member
 
Registered: Sep 2009
Distribution: Slackware 14.1
Posts: 118

Original Poster
Rep: Reputation: 20
I've tried putting a .bashrc and .bash_profile into my home folder .. no luck. As I said in my post, this behaviour is new to me. For 18 years now up until the latest slackware, whenever I've started a terminal program it has picked up the /etc/profile contents.

Hold the phone ... just tried a .bashrc file again and it's working now. I've never had to use one before. Thanks for the reply.

Last edited by thirteen_engines; 12-10-2013 at 03:28 PM.
 
Old 12-10-2013, 07:51 PM   #4
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
Edit the Konsole profile and change the command to "/bin/bash -l". The "-l" loads your .profile.
 
1 members found this post helpful.
Old 12-11-2013, 09:57 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
tux dude's approach is the one I use. I first came across the issue in Slackware 13 and thought it was related to the introduction of kde4. See this thread
 
  


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
Unexpected behaviour with Python / Tkinter amcleod Programming 3 07-17-2012 11:15 PM
unexpected behaviour of cp (ext3?) sarin Linux - Software 2 02-11-2009 12:34 PM
Unexpected behaviour on PC. Gone now but worrying paul123 Linux - Security 3 02-15-2007 03:09 AM
unexpected chmod behaviour ruzle0 Linux - Newbie 2 11-28-2005 02:06 PM
Unexpected behaviour with the find command dazdaz Linux - General 3 12-15-2004 08:50 PM

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

All times are GMT -5. The time now is 10:46 AM.

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