[Bug 444454] Re: Always need to run: source ~/.bashrc
Colin Watson
cjwatson at canonical.com
Fri Oct 9 13:33:15 BST 2009
On Fri, Oct 09, 2009 at 08:08:30AM -0000, Achim Bohnet wrote:
> You showed us that you have no .bash_profile and .bash_profile, now do
> you have a ~/.profile?
>
> If yes: is .bashrc sourced in .profile? if not: add it (see
> /etc/skel/.profile how to do it)
>
> if you have no .profile, copy /etc/skel/.profile to $HOME/ and be happy
> not to be forced to souece bashrc explicitly ;)
Did you read my previous comment which notes that according to the bash
documentation this is not supposed to be necessary?
Bash attempts to determine when it is being run with its standard input
connected to a a network connection, as if by the remote shell daemon,
usually rshd, or the secure shell daemon sshd. If bash determines it
is being run in this fashion, it reads and executes commands from
~/.bashrc and ~/.bashrc, if these files exist and are readable. It
will not do this if invoked as sh. The --norc option may be used to
inhibit this behavior, and the --rcfile option may be used to force
another file to be read, but rshd does not generally invoke the shell
with those options or allow them to be specified.
--
Always need to run: source ~/.bashrc
https://bugs.launchpad.net/bugs/444454
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.
More information about the Ubuntu-server-bugs
mailing list