bug-gawk
[Top][All Lists]
Advanced

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

Re: no exit status available when a command doesn't exist or fails in pi


From: Ed Morton
Subject: Re: no exit status available when a command doesn't exist or fails in pipe to grep
Date: Fri, 10 Sep 2021 07:38:14 -0500


Ed Morton

> On Sep 10, 2021, at 2:19 AM, arnold@skeeve.com wrote:
> 
> "Neil R. Ormos" <ormos-gnulists17@ormos.org> wrote:
> 
>> 
>> If the piped command's return code were supplied
>> in ERRNO instead of as the return value from
>> close(), perhaps that would adequately expose the
>> required information without contravening the
>> earlier-quoted section of the POSIX spec.
> 
> It would need to be another variable, not ERRNO, and I don't think it's
> worth the trouble of introducing one.
> 
> Unfortunately, it's an area of the language that is poorly specified
> and likely will remain so. I don't think I'm going to change anything.
> Mainly because I doubt that most people use --posix on a regular basis.
> 
> Thanks,
> 
> Arnold

Sounds good, thanks for Considering it

    Ed

> 




reply via email to

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