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^