Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 3053 - md5sum --check=file option parsing broken
md5sum --check=file option parsing broken
Product: Red Hat Linux
Classification: Retired
Component: textutils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Cristian Gafton
Depends On:
  Show dependency treegraph
Reported: 1999-05-25 19:03 EDT by dharris
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-07-28 03:48:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description dharris 1999-05-25 19:03:21 EDT
The md5sum manpage shows a command line option using the
following syntax "-c, --check=file". Problem is that the
implementation does not accept --check=file syntax, but
only "-c file" and "--check file".

Could be either an error with the manpage or the
implementation... the "me5sum --help is ambiguous... and
I'm not up on my getopt standards.


[root@hobbes tempdo_records]# md5sum list > hash
[root@hobbes tempdo_records]#
[root@hobbes tempdo_records]# md5sum --check=hash
md5sum: option `--check' doesn't allow an argument
Try `md5sum --help' for more information.
[root@hobbes tempdo_records]# md5sum --check hash
list: OK
[root@hobbes tempdo_records]# md5sum -c hash
list: OK
[root@hobbes tempdo_records]#
Comment 1 David Lawrence 1999-05-25 19:21:59 EDT
The man page is definitely different than the usage spit out the
md5sum --help command.
Comment 2 Cristian Gafton 1999-07-28 03:48:59 EDT
This is the output from md5sum --help on a RH 6.0 system. Looks clean
to me.

md5sum --help
Usage: md5sum [OPTION] [FILE]...
  or:  md5sum [OPTION] --check [FILE]
Print or check MD5 checksums.
With no FILE, or when FILE is -, read standard input.

  -b, --binary            read files in binary mode
  -c, --check             check MD5 sums against given list
  -t, --text              read files in text mode (default)

The following two options are useful only when verifying checksums:
      --status            don't output anything, status code shows
  -w, --warn              warn about improperly formated MD5 checksum

      --help              display this help and exit
      --version           output version information and exit

Note You need to log in before you can comment on or make changes to this bug.