• Sami Kerola's avatar
    all: check stdout and stderr status at exit · 52269d22
    Sami Kerola authored
    If stream status is not checked at the end of execution below problem
    would not report error, or non-zero exit code.  The uptime is just an
    example same was true with all commands of the project.
    $ uptime >&- ; echo $?
    uptime: write error: Bad file descriptor
    $ uptime >/dev/full ; echo $?
    uptime: write error: No space left on device
    Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>
pwdx.c 3.46 KB