On 2021/06/27 14:33, [email protected] via austin-group-l at The Open Group wrote:
Don Cragun via austin-group-l at The Open Group dixit:

        • When an unrecoverable error condition is
          encountered, the utility shall exit with a
          non-zero exit status.

Is “pwd >/dev/full” an “unrecoverable error condition” as regards
the pwd utility?
---
   No.  the pwd utility has had its stdout redirected by its
parent, "the shell". Since the faulty redirection was done by parent,
is the error in the child or the parent?
I think not. It validated the current working directory and attempted
to hand the information over; what the user does with it is the user’s
fault.
---
Similar reasoning^


          • Re:... Joerg Schilling via austin-group-l at The Open Group
          • Re:... Geoff Clare via austin-group-l at The Open Group
          • Re:... Robert Elz via austin-group-l at The Open Group
          • Re:... Vincent Lefevre via austin-group-l at The Open Group
          • Re:... Geoff Clare via austin-group-l at The Open Group
          • Re:... Robert Elz via austin-group-l at The Open Group
          • Re:... Vincent Lefevre via austin-group-l at The Open Group
          • Re:... Geoff Clare via austin-group-l at The Open Group
          • Re:... Robert Elz via austin-group-l at The Open Group
          • Re:... Geoff Clare via austin-group-l at The Open Group
  • Re: utilities and wr... L A Walsh via austin-group-l at The Open Group

Reply via email to