LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2009, 12:46 AM   #16
crs_zxf
Member
 
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 17

Quote:
Originally Posted by ArfaSmif View Post
That's interesting. My bash version is bash-3.2-30.fc10.i386 which is a few steps behind yours. Any way to "go backwards"?
You know, I found an interesting thing, when I run command as ". ~/.bashrc", everything went well, but when I run ". .bashrc", I got the problems stated above, of course, I run them both in my home dir.

Even if I installed bash-4.0, I found the same phenomenon, so it seems very likely a bug of bash.
 
Old 03-06-2009, 11:11 AM   #17
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Quote:
Originally Posted by crs_zxf View Post
You know, I found an interesting thing, when I run command as ". ~/.bashrc", everything went well, but when I run ". .bashrc", I got the problems stated above, of course, I run them both in my home dir.

Even if I installed bash-4.0, I found the same phenomenon, so it seems very likely a bug of bash.
What's your $PATH? Could it contain a directory listed before '.' which contains a file named .bashrc?

Try doing
Code:
locate .bashrc
and see if there are other files of that name which might be getting picked up.

EDIT: I see from your post where you showed the contents of .bashrc that /root is part of your path. Could be another .bashrc in there perhaps?

Last edited by openSauce; 03-06-2009 at 11:17 AM.
 
Old 03-06-2009, 08:19 PM   #18
crs_zxf
Member
 
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 17
Smile

Quote:
Originally Posted by openSauce View Post
EDIT: I see from your post where you showed the contents of .bashrc that /root is part of your path. Could be another .bashrc in there perhaps?
You're right, Thank you so much! It's the /root/ in $PATH that cause that odd problem.
 
Old 03-07-2009, 03:25 AM   #19
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
You certainly had us guessing! One of those things that should be "obvious" but can make you bang your head against it for hours. Glad you got it working.

OS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
~/.bashrc variable for a command? Maybe? computer_freak_8 Linux - Newbie 17 02-02-2009 08:46 PM
bashrc:command not found ukyo Linux - General 1 03-08-2005 10:54 AM
~/.bashrc doesn't work Kristian2 Slackware 6 05-19-2004 05:12 AM
bash's source code ramu_ak Linux - General 2 02-16-2003 07:06 PM
bash's source code ramu_ak Linux - General 0 02-16-2003 09:32 AM


All times are GMT -5. The time now is 11:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration