Re: [Toybox] Command exit numbers.

2017-06-13 Thread Rob Landley
On 06/12/2017 10:49 AM, enh wrote: > On Sat, Jun 10, 2017 at 11:29 AM, Rob Landley wrote: >> Would it be useful if perror_exit() set exitval to errno by default >> instead of 1? They're well defined values that let you know _what_ happened. > > ...except the caller doesn't know

Re: [Toybox] Command exit numbers.

2017-06-13 Thread enh
On Tue, Jun 13, 2017 at 3:52 PM, Rob Landley wrote: > On 06/12/2017 10:49 AM, enh wrote: >> On Sat, Jun 10, 2017 at 11:29 AM, Rob Landley wrote: >>> Would it be useful if perror_exit() set exitval to errno by default >>> instead of 1? They're well defined