[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54726: cksum(1) doesn't inform you of passed checks
The following reply was made to PR bin/54726; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
Subject: Re: bin/54726: cksum(1) doesn't inform you of passed checks
Date: Sun, 1 Dec 2019 11:53:18 -0000 (UTC)
>localhost$ cat MD5 | /usr/bin/cksum -c
>This struck me as odd. So after reading the manual it would appear the only way to know that the files were ok is to:
>localhost$ echo $?
That is how all UNIX tools traditionally behave. The commands are used in
scripts and the check result is used to control the proram flow. E.g. compare
to 'gzip -t' where you can add the '-v' verbose flag to get human readable
Michael van Elst
"A potential Snark may lurk in every tree."
Main Index |
Thread Index |