[File] [PATCH] handle full disk space errors as failure
dirk at dmllr.de
Thu Mar 17 21:13:49 UTC 2022
do a final fflush of stdout even in buffered mode
so that a ENOSPACE is caught and propagated as an exit
code 1 so that the surrounding logic can detect and
handle it as a failure rather than silently misbehaving.
file somefile > /dev/full && echo exit code was 0
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1672 bytes
Desc: not available
More information about the File