This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: .bashrc not called for non-interactive ssh sessions
- From: Larry Hall <lh-no-personal-replies-please at cygwin dot com>
- To: Philip Nemec <pnemec at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 21 Oct 2004 20:40:26 -0400
- Subject: Re: .bashrc not called for non-interactive ssh sessions
- References: <4d211735041021164839ba2ac3@mail.gmail.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
At 07:48 PM 10/21/2004, you wrote:
>As best as I can tell from the archives and man pages, ~/.bashrc
>should be called when starting an ssh session - both interactive and
>non-interactive. Tests on my Linux box behave as expected:
>
>ssh linuxbox
>ssh linuxbox pwd
>ssh cygwinbox
>
>But ssh cygwinbox pwd does *not* call ~/.bashrc...
>
>>From the bash man page:
>
> Bash attempts to determine when it is being run by the remote shell
> daemon, usually rshd. If bash determines it is being run by rshd, it
> reads and executes commands from ~/.bashrc, if that file exists and is
> 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.
WFM. What's your shell in '/etc/profile'?
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/