Re: md5sum < file

[email protected] (Bob Proulx)
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
> 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)]

A SIGSEGV probably warrants a bug report on that version of md5sum.

> But the one from textutils can:
> 
>   $ echo a |md5sum.textutils -c x
>   -: OK

Just to clarify something.  md5sum on Debian is not from the textutils
package at all.  It is from the 'dpkg' package.

    md5sum --version
    md5sum: invalid option -- -
    usage: md5sum [-bv] [-c [file]] | [file...]
    Generates or checks MD5 Message Digests
        -c  check message digests (default is generate)
        -v  verbose, print file names when checking
        -b  read files in binary mode
    The input for -c should be the list of message digests and file names
    that is printed on stdout by this program when it generates digests.

    dpkg -S /usr/bin/md5sum 
    dpkg: /usr/bin/md5sum

Bob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.