[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .bashrc is not sourced after ssh -t (but is sourced if -t isn't used
From: |
Chet Ramey |
Subject: |
Re: .bashrc is not sourced after ssh -t (but is sourced if -t isn't used) |
Date: |
Wed, 05 Dec 2007 14:31:33 -0500 |
User-agent: |
Thunderbird 2.0.0.9 (Macintosh/20071031) |
Vincent Lefevre wrote:
> On 2007-12-04 22:56:21 -0500, Chet Ramey wrote:
>> Bash does 1 if (and only if) it can detect it's being run with its
>> stdin connected to a socket. `ssh -t' intentionally defeats that.
>> There is other checking that SSH_SOURCE_BASHRC enables: looking for
>> SSH_CLIENT or SSH2_CLIENT.
>
> So, will SSH_SOURCE_BASHRC be reenabled by default so that bash
> behaves as documented?
No. sshd is not the `remote shell daemon'. The remote shell daemon
the man page speaks of runs on port 514 and is named either `rshd'
or `remshd'. Bash behaves exactly as documented.
I don't think you looked up the acrimonious discussion that preceded
my turning off the special handling of SSH_CLIENT and SSH2_CLIENT. I
won't be making that the default again.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/