Re: sh exit status ($?) for exec failures

2017-07-03 Thread Joerg Schilling
Robert Elz 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

Re: sh exit status ($?) for exec failures

2017-07-02 Thread Chet Ramey
On 7/1/17 8:01 PM, Robert Elz wrote: > | 126 covers errors when those checks done and exec() is expected to not > | fail but does anyways, > > It reads to me as being intended to be somewhat more specific than that. > in any case, in this situation, there are no (relevant) checks, simply an

Re: sh exit status ($?) for exec failures

2017-07-01 Thread Robert Elz
Date:Sat, 1 Jul 2017 18:30:59 -0400 From:Shware Systems Message-ID: <15d00474c8b-973-b...@webprd-a49.mail.aol.com> | A shell can use more codes as an extension, Yes, I know that. | but this is not recommended to leave as much room for