bash on login.

2007-09-06 Thread Albert Shih
Hi all I'm using bash for standard shell, what I don't understand is when I'm connect by ssh on my server the bash don't parse .bashrc file. But if in the bash session I type «bash» this time the .bashrc is use. How can I make the .bashrc file is read when I connect by ssh ? Regards. --

Re: bash on login.

2007-09-06 Thread Gabor Kovesdan
Albert Shih escribió: Hi all I'm using bash for standard shell, what I don't understand is when I'm connect by ssh on my server the bash don't parse .bashrc file. But if in the bash session I type «bash» this time the .bashrc is use. How can I make the .bashrc file is read when I connect

Re: bash on login.

2007-09-06 Thread Derek Ragona
At 10:06 AM 9/6/2007, Albert Shih wrote: Hi all I'm using bash for standard shell, what I don't understand is when I'm connect by ssh on my server the bash don't parse .bashrc file. But if in the bash session I type «bash» this time the .bashrc is use. How can I make the .bashrc file is read

Re: bash on login.

2007-09-06 Thread Albert Shih
Le 06/09/2007 à 17:09:27+0200, Gabor Kovesdan a écrit Albert Shih escribió: Hi all I'm using bash for standard shell, what I don't understand is when I'm connect by ssh on my server the bash don't parse .bashrc file. But if in the bash session I type «bash» this time the .bashrc is use.

Re: bash on login.

2007-09-06 Thread Giorgos Keramidas
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. When a login shell exits

Re: bash on login.

2007-09-06 Thread Bahman M.
by ssh ? SSH runs bash as a login shell and in that mode, bash doesn't execute .bashrc (see man 1 bash). One solution is to put the following in ~/.bash_profile. if [ -f ~/.bashrc ]; then . ~/.bashrc fi Bahman ___ freebsd-questions@freebsd.org

Re: bash on login.

2007-09-06 Thread Pollywog
On Thursday 06 September 2007 15:06:02 Albert Shih wrote: Hi all I'm using bash for standard shell, what I don't understand is when I'm connect by ssh on my server the bash don't parse .bashrc file. But if in the bash session I type «bash» this time the .bashrc is use. How can I make the

Re: bash on login.

2007-09-06 Thread Mel
On Thursday 06 September 2007 17:06:02 Albert Shih wrote: I'm using bash for standard shell, what I don't understand is when I'm connect by ssh on my server the bash don't parse .bashrc file. man bash, section INVOCATION: A login shell is one whose first character of argument zero is a