-
Bug
-
Resolution: Won't Do
-
Undefined
-
rhel-7.8
-
None
-
Moderate
-
rhel-sst-cs-plumbers
-
ssg_core_services
-
None
-
False
-
-
None
-
None
-
None
-
None
-
If docs needed, set a value
-
-
All
-
None
Example steps to reproduce:
$ echo 'this is .bashrc' > ~/.bashrc
$ echo 'this is .bash_profile' > ~/.bash_profile
$ ssh test@localhost
...
this is .bash_profile
$ ssh test@localhost whoami
...
this is .bashrc
The manual page says:
Bash attempts to determine when it is being run with its standard
input connected to a network connection, as when executed by the
remote shell daemon, usually rshd, or the secure shell daemon sshd.
If bash determines it is being run in this fashion, it reads and
executes commands from ~/.bashrc, if that file exists and is read‐
able.
The manual page should reflect it is only for non interactive shells.
Maybe should also document that if bash is built with the preprocessor
SSH_SOURCE_BASH then it would also source .bashrc for interactive shells.
- external trackers