Bug 38848 - exec hangs in .profile script for /bin/sh
Summary: exec hangs in .profile script for /bin/sh
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash
Version: 7.1
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-02 21:24 UTC by John Benninghoff
Modified: 2007-04-18 16:32 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-05-02 21:24:26 UTC
Embargoed:


Attachments (Terms of Use)

Description John Benninghoff 2001-05-02 21:24:22 UTC
My .profile script hangs when it attempts to exec another shell.  My
login shell is /bin/sh.  You can reproduce this by creating an account
with /bin/sh as the login shell and then place an exec /bin/bash in
the .profile script.

Comment 1 Bernhard Rosenkraenzer 2001-05-03 15:40:57 UTC
This is the expected behavior - your inital shell executes .profile, which in 
turn executes /bin/bash, which in turn executes .profile, and so on.
If you want to change your login shell, use chsh, not exec.



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