• 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
    1
    $ uptime >/dev/full ; echo $?
    uptime: write error: No space left on device
    1
    Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>
    52269d22
pwdx.c 3.46 KB