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 04-25-2005, 06:19 PM   #1
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
.bash_profile doesn't start


I'm having a problem with .bash_profile, which doesn't start when i open the konsole or switch user. I'm having my .bash_profile file saved in home directory. I'm new to Slackware (i'm using Slackware 10.1), so i don't know if he wants the .bash_profile file elsewhere or what is wrong?
 
Old 04-25-2005, 06:24 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
is your bash_profile customized and if so, is the syntax ok?
 
Old 04-25-2005, 06:49 PM   #3
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
It is, if i start it manually:
Code:
. .bash_profile
it works!
 
Old 04-25-2005, 07:00 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
i think you can make a file named " ~/.profile " and put in :

source ~/.bash_profile

egag
 
Old 04-25-2005, 07:26 PM   #5
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
egag, 10x! it works now!
 
Old 04-26-2005, 12:28 AM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
The reason it wasn't getting read is because .bash_login is only read for login shells -- konsole, xterms, su's etc are all sub-shells. The 'correct' way to have it read consistently is to reference it in .bashrc which is read when sub-shells are started. Like so:

Code:
source ~/.bash_profile
--Shade
 
  


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
.bash_profile UmneyDurak Linux - General 1 10-17-2005 11:44 PM
.bash_profile dimi Linux - General 1 08-23-2005 08:00 PM
.bash_profile nguye103 Linux - Software 3 10-22-2004 01:48 PM
.bash_profile praveenv Linux - Newbie 3 08-14-2004 12:58 PM
.bash_profile wildcat22 Linux - General 3 04-13-2004 07:08 PM

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

All times are GMT -5. The time now is 10:21 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