Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 83238

Summary: uname exits shell on invalid option
Product: [Retired] Red Hat Linux Reporter: John Jetmore <jetmore>
Component: sh-utilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-31 22:03:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Jetmore 2003-01-31 19:24:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; H010818)

Description of problem:
running 'uname -V' exits the shell.  Ran it su'd to root and it exited me back 
to my login shell.  Ran it from my login shell and it logged me out entirely.  
Also tried uname -T to see if it was specific to -V, and -T produced same 

Additionally, in the error message the path to uname is incorrect.  error 
lists /usr/bin/uname, actual location is /bin/uname.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. uname -V

Actual Results:  I received error w/ incorect path and my session was terminated

Expected Results:  I should have received error w/ correct path and _not_ been 
logged out.

Additional info:

Example output:

rizzo 0 /home/jetmore ># uname -T
/usr/bin/uname: invalid option -- T
Try `/usr/bin/uname --help' for more information.
rizzo 1 /home/jetmore >

Comment 1 Tim Waugh 2003-01-31 22:03:39 UTC
Sounds like you have 'set -e' in effect in your shell.

The path is correct in coreutils in rawhide.