Red Hat Bugzilla – Bug 468054
bashrc not run when running non-interactive remote shell
Last modified: 2008-10-22 13:00:51 EDT
Description of problem:
If a remote program is executed, say 'ssh localhost date', the bashrc script is supposed to be run. (See the manpage for 'bash' and see also bash shell.c:970).
For some reason this is not happening with openssh-5.1p1-2.fc9.i386, but does work with the previously released version, openssh-5.0p1-3.fc9.i386, with no other changes (you can upgrade/downgrade/upgrade etc to reproduce).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. put an 'echo' statement in .bashrc
2. ssh localhost date
3. see that the echo statement never happened
4. downgrade ssh to openssh-5.0p1-3.fc9.i386, repeat steps 1-3
.bashrc is not being run when a non-login, non-interactive remote shell is run, despite that it always has done so, and despite that bash says it will, and despite that there is code in bash (shell.c:970) to make it happen.
.bashrc should be run
The problem is the bash code is not currently compiled in.
*** This bug has been marked as a duplicate of bug 458839 ***