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 ".
2. bash doesn't do that when one uses "ssh -t ".
According to the bash man page, (1) is correct and (2) is incorrect
(
Vincent Lefevre wrote:
> 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 ".
> 2. bash doesn't do that when one uses "ssh -t ".
Bash does 1 if (and only if) it can