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