What do you think of making cksum output:

(SHA256) nonexistant.txt: MISSING

instead of FAILED and the extra output to stderr saying "No such file
or directory"?

This would make it easier to ignore the MISSING files but still see
those that FAILED the checksum.

Daniel

On Thu, Feb 23, 2012 at 12:24 PM, Lawrence Teo <l...@lteo.net> wrote:
> On Thu, Feb 23, 2012 at 11:46:11AM +0100, Mark Kettenis wrote:
>> > Date: Thu, 23 Feb 2012 10:48:17 +0100
>> > From: Marc Espie <es...@nerim.net>
>> >
>> > On Thu, Feb 23, 2012 at 08:16:20AM +0000, Nicholas Marriott wrote:
>> > > Hi
>> > >
>> > > Is this really much more useful than 2>/dev/null?
>> > >
>> > Note the FAILED that vanish.
>> >
>> > I'm not sure it's not bloat anyways.
>>
>> None of the other BSDs seem to implement an option like this (and
>> md5(1) is pretty much a BSDism; Linux and Solaris don't have it).
>>
>> Our policy tends to be to not add non-standard options to our
>> utilities to encourage people to write portable shell scripts.  Of
>> course we make exceptions if a strong case can be made for the added
>> functionality.  But personally I don't think that's the case here.
>
> md5(1) on FreeBSD, DragonFly BSD, and OS X do not even have -c, so in a
> way shell scripts with "md5 -c" are already relatively unportable. :)
>
> I do appreciate your feedback and understand your point.
>
> Thanks,
> Lawrence

Reply via email to