> Below are two tests cases for "ssh localhost date". The Linux
> test shows that ~/.bashrc is read. The Cygwin case shows none of
> ~/{.bash_profile,.bash_login,.profile,.bashrc} are read. Doesn't this
> seem like a bug?

There are two issues at play here.  First, unless bash is compiled with
SSH_SOURCE_BASHRC defined in config-top.h, it won't even bother checking.

Next, if bash can't determine that its standard input is a socket or other
network connection, it won't try to source any bashrc file.  This prevents
the same code from executing when the right conditions are met but standard
input is a pipe, as when invoked by `make'.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://tiswww.tis.case.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to