This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours

Bug 468054

Summary: bashrc not run when running non-interactive remote shell
Product: [Fedora] Fedora Reporter: David Mansfield <bugzilla>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 9CC: mgrepl, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-22 13:00:51 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description David Mansfield 2008-10-22 11:39:21 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):
openssh-5.1p1-2.fc9.i386

How reproducible:
Every time.

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
  
Actual results:
.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.


Expected results:
.bashrc should be run

Additional info:
Comment 1 Tomas Mraz 2008-10-22 13:00:51 EDT
The problem is the bash code is not currently compiled in.

*** This bug has been marked as a duplicate of bug 458839 ***