Re: [PATCH] change exit status of env(1)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Unangst
Date: Thursday, July 22, 2010 - 9:11 pm

On Thu, Jul 22, 2010 at 6:52 PM, Daniel Dickman <didickman@gmail.com> wrote:

The only thing close to ambiguous is running env with a bad command
line, in which case you get usage and exit 1.  Don't do that.

If you get back a 0 it means, tada, it worked!

If you get back 127, it means env didn't find the command.  Unless you
did something retarded like run env env env env diddly, and then it's
not env returning 127 but the inner inner inner env.  I really hope
this is not the kind of problem you are facing when writing a shell
script.


You are clearly reading this exactly backwards.

Of all the possible bugs in OpenBSD to worry about, this one strikes
me as the teensiest of mole hills.  Please move on to a real problem.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] change exit status of env(1), Daniel Dickman, (Thu Jul 22, 1:47 pm)
Re: [PATCH] change exit status of env(1), Ingo Schwarze, (Thu Jul 22, 2:07 pm)
Re: [PATCH] change exit status of env(1), Daniel Dickman, (Thu Jul 22, 2:38 pm)
Re: [PATCH] change exit status of env(1), Jason McIntyre, (Thu Jul 22, 3:15 pm)
Re: [PATCH] change exit status of env(1), Daniel Dickman, (Thu Jul 22, 3:52 pm)
Re: [PATCH] change exit status of env(1), Ted Unangst, (Thu Jul 22, 9:11 pm)
Re: [PATCH] change exit status of env(1), Jason McIntyre, (Thu Jul 22, 11:57 pm)
Re: [PATCH] change exit status of env(1), Philip Guenther, (Sat Jul 24, 5:03 am)