[Top][All Lists]

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

bug#9956: Linux program "sum"

From: Eric Blake
Subject: bug#9956: Linux program "sum"
Date: Fri, 04 Nov 2011 13:56:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15

tag 9956 notabug

On 11/04/2011 12:37 PM, Rodney Rieck wrote:
    If you type in something like this:  sum -r *

    and if there are multiple files present in the current directory, you
    will get output like this for each file it checks:

    [check_sum] [number_of_blocks] [file_name]

    If though on the command line you change the "*" to a single file name,
    the output is the same except that it doesn't print/display the
    "[file_name]", I guess because that seems redundant because the file
    name is already known and was typed in on the command line.

Thanks for the report. If you want 'sum' to output the file name, even for one file, then use 'sum --sysv' (or sum -s), although that alters the output to strip leading zeroes and use slightly different spacing:

$ sum a
00000     0 a
$ sum -s a
0 0 a

Since this feature is already implemented, I'm closing out this bug report.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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