On 2021-06-29 13:30:53 -0700, L A Walsh wrote: > 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?
The redirection is not faulty. /dev/full is a valid file, with permissions to write to it. But it behaves as a full file system (like what may happen with any normal file system), i.e. yielding an ENOSPC error when writing to it. -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
