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: arnold
Subject: Re: no exit status available when a command doesn't exist or fails in pipe to grep
Date: Thu, 09 Sep 2021 07:08:37 -0600
User-agent: Heirloom mailx 12.5 7/5/10

"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:

> So gawk forces the return code to 0 in POSIX mode in almost all cases.

Ah, so it does.  It's too much hair to distinguish "child exited with
problem" from "could not close pipe and/or recover child info and/or
whatever other mechanics went wrong".  So I just punted.

And as I pointed out earlier, different awks do different things
anyway, so there's no reliable portable way to deal with the
status from close().

Arnold



reply via email to

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