[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: hash-type in sum utils
From: |
Pádraig Brady |
Subject: |
Re: RFE: hash-type in sum utils |
Date: |
Wed, 25 Jul 2012 00:10:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 |
On 07/24/2012 02:44 PM, Pádraig Brady wrote:
> On 07/24/2012 12:18 PM, Ondrej Oprala wrote:
>> Hello,
>> I'd like to consult this RFE
>> http://lists.gnu.org/archive/html/bug-coreutils/2009-11/msg00341.html and
>> find out if my proposed solutions would be satisfactory. There shouldn't
>> be a problem with printing the
>> hash-type prefix before printing the generated hash. My concerns are more
>> with the hash utils' logic
>> during hash check. Should the utils recognize the prefix/prefixless
>> version of the input on their own
>> or should they require the proposed '-l' switch during the checking as
>> well? Personally, I'd lean more
>> towards the idea of automatic prefix recognition, which shouldn't be too
>> hard to implement and would probably
>> feel more natural to everyone.
>> Cheers,
>> Ondrej Oprala
>
> A fairly sensible idea.
>
> Generating the tags would need to be optional of course.
> I vote for --tag.
Hmm, we already support a tagged format.
The BSD default format from the md5, sha1, sha256 utils is of the form:
MD5 (filename) = ....................
No point in coming up with another format.
> Consuming the tags with --check should be automatic.
>
> Tags could be useful too if we ever decided to consolidate
> to a single checksum util.
I notice that openbsd applies that technique to its cksum util,
and it outputs in the BSD format above:
http://www.openbsd.org/cgi-bin/man.cgi?query=cksum
http://www.openbsd.org/cgi-bin/cvsweb/src/bin/md5/md5.c?rev=HEAD;content-type=text%2Fplain
cheers,
Pádraig.
- RFE: hash-type in sum utils, Ondrej Oprala, 2012/07/24
- Fwd: RFE: hash-type in sum utils, Ondrej Oprala, 2012/07/25
- Re: RFE: hash-type in sum utils, Pádraig Brady, 2012/07/25
- Re: RFE: hash-type in sum utils, Ondrej Oprala, 2012/07/26
- Re: RFE: hash-type in sum utils, Pádraig Brady, 2012/07/26
- Re: RFE: hash-type in sum utils, Ondrej Oprala, 2012/07/26
- Re: RFE: hash-type in sum utils, Pádraig Brady, 2012/07/26
- Re: RFE: hash-type in sum utils, Ondrej Oprala, 2012/07/30
- Re: RFE: hash-type in sum utils, Jim Meyering, 2012/07/30
- Re: RFE: hash-type in sum utils, Ondrej Oprala, 2012/07/31
- Re: RFE: hash-type in sum utils, Jim Meyering, 2012/07/31