coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreutils] [PATCH] md5sum: Add option to ignore non-existant files


From: Pádraig Brady
Subject: Re: [coreutils] [PATCH] md5sum: Add option to ignore non-existant files
Date: Mon, 23 Nov 2015 16:24:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 23/11/15 16:05, Jim Meyering wrote:
> On Mon, Nov 23, 2015 at 2:20 PM, Pádraig Brady <address@hidden> wrote:
>>> I'll push a bit later today.
>>
>> Pushed at 
>> http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.24-91-g9fd0662
>> Marking http://bugs.gnu.org/15604 done
> 
> Given how this warns/fails when using --check does nothing,
> 
>   $ :|sha1sum --check
>   sha1sum: 'standard input': no properly formatted SHA1 checksum lines found
>   [Exit 1]
> 
> should using --check with --ignore-missing also warn/fail when it
> verifies no checksum?
> 
>   $ :|sha1sum |sed s/-/no-such/ |sha1sum --check --ignore-missing; echo $?
>   0

It's a fair point, but I see the first error as verifying the
checksum file itself, and so separate functionality.

Related to this is outputting "MISSING" as well as "OK"
unless --quiet is specified, though I thought the lack
of "OK" if no files found would be enough indication
of an issue in the normal usage?

cheers,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]