[Top][All Lists]

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

.bashrc is not sourced after ssh -t (but is sourced if -t isn't used)

From: Vincent Lefevre
Subject: .bashrc is not sourced after ssh -t (but is sourced if -t isn't used)
Date: Tue, 4 Dec 2007 13:35:36 +0100
User-agent: Mutt/1.5.17-vl-r19795 (2007-11-30)

The following has been tried on OpenSUSE 10.2 and Mac OS X 10.4.11.

When run by sshd, bash doesn't behave consistently:
  1. bash sources the init files when one uses "ssh <host> <cmd>".
  2. bash doesn't do that when one uses "ssh -t <host> <cmd>".

According to the bash man page, (1) is correct and (2) is incorrect
(sshd is the remote shell daemon nowadays). But according to the
CHANGES and COMPAT files, this is the converse.

Note that Debian doesn't have this problem, probably because
SSH_SOURCE_BASHRC is uncommented (see README.Debian.gz).

Concerning OpenSUSE, I had reported a bug here:


Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

reply via email to

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