bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh localhost date # no startup files read: ~/{.bash_profile, .bash_


From: Chet Ramey
Subject: Re: ssh localhost date # no startup files read: ~/{.bash_profile, .bash_login, .profile, .bashrc}
Date: Thu, 23 Jun 2005 07:59:20 -0400

> 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    chet@case.edu    http://tiswww.tis.case.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]