Date: Thu, 06 Sep 2007 19:06:03 +0330 From: "Bahman M." <b.movaqar@adempiere.org> To: Albert.Shih@obspm.fr Cc: freebsd-questions@freebsd.org Subject: Re: bash on login. Message-ID: <46E01E63.9000205@adempiere.org> In-Reply-To: <20070906150602.GE61602@pcjas.obspm.fr> References: <20070906150602.GE61602@pcjas.obspm.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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 when I connect 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46E01E63.9000205>