bug-textutils
[Top][All Lists]
Advanced

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

Re: md5sum < file


From: Jim Meyering
Subject: Re: md5sum < file
Date: Mon, 08 Jul 2002 15:00:07 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (i686-pc-linux-gnu)

Herbert Xu <address@hidden> wrote:
> I'm getting complaints from Debian users regarding the output of
> md5sum < file, which is of the form:
>
> d47fe6e8023a49af77e5885275d7242f  -
>
> The complainants would prefer to see:
>
> d47fe6e8023a49af77e5885275d7242f
>
> which is analogous to the behaviour cksum and wc.
>
> What is your view on this?

Consistency with other programs would be nice,
but md5sum --check must parse that same output, and
its output should stay consistent with that of other
(historical) md5sum implementations.

It's not hard to remove those three trailing characters.
E.g. just pipe the output through tr -d ' -' or sed 's/ .*//'

Hmm... Debian unstable's /usr/bin/md5sum can't handle
the use of `-' as a name for stdin:

  $ echo a |md5sum > x
  $ echo a |/usr/bin/md5sum -c x
  /usr/bin/md5sum: can't open -
  Segmentation fault
  [Exit 139 (SIGSEGV)]

But the one from textutils can:

  $ echo a |md5sum.textutils -c x
  -: OK



reply via email to

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