Robert Elz <k...@munnari.oz.au> wrote:

> When the shell has to exec a utility, if the exec*() it performs fails,
> it has to reflect that status (failure) back to the calling process
> (usually for our purposes, the script).
>
> XCU 2.8.2 includes ... (lines wrapped for e-mail)
>
> 75455 If a command is not found, the exit status shall be 127.
>       If the command name is found, but it is
> 75456 not an executable utility, the exit status shall be 126.
>       Applications that invoke utilities without
> 75457 using the shell should use these exit status values to report
>       similar errors.

To answer your question:

The POSIXified ksh88 returns 127 for ENOENT and 126 in all other cases.

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to