bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

su return value - bug or feature?


From: Bernhard Rosenkraenzer
Subject: su return value - bug or feature?
Date: Tue, 6 Mar 2001 14:44:05 +0100 (CET)

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=11029

su - username -c "exit 2"; echo $?

returns 0 rather than 2. I can see arguments for both wanting 0 (su
worked) and wanting 2 (return value from the executed command)...

Is this intentional/defined by any standard?

LLaP
bero





reply via email to

[Prev in Thread] Current Thread [Next in Thread]