LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Unexpected Bash behaviour in 14.1 (https://www.linuxquestions.org/questions/slackware-14/unexpected-bash-behaviour-in-14-1-a-4175487521/)

thirteen_engines 12-10-2013 01:13 PM

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?

coldbeer 12-10-2013 01:29 PM

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

thirteen_engines 12-10-2013 03:23 PM

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. :)

tux_dude 12-10-2013 07:51 PM

Edit the Konsole profile and change the command to "/bin/bash -l". The "-l" loads your .profile.

arubin 12-11-2013 09:57 AM

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


All times are GMT -5. The time now is 07:50 PM.