> 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

_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils

Reply via email to