Bug 468054 - bashrc not run when running non-interactive remote shell
Summary: bashrc not run when running non-interactive remote shell
Keywords:
Status: CLOSED DUPLICATE of bug 458839
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 9
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-22 15:39 UTC by David Mansfield
Modified: 2008-10-22 17:00 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-10-22 17:00:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Mansfield 2008-10-22 15:39:21 UTC
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 17:00:51 UTC
The problem is the bash code is not currently compiled in.

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


Note You need to log in before you can comment on or make changes to this bug.