md5sum, sha*sum: add --tag to output a format indicating the algorithm
authorOndrej Oprala <ooprala@redhat.com>
Thu, 2 Aug 2012 11:31:50 +0000 (13:31 +0200)
committerPádraig Brady <P@draigBrady.com>
Fri, 24 Aug 2012 14:56:26 +0000 (15:56 +0100)
commitc9f4c323220f51a42e3da8ea79f9ddcedab041b9
treea414c5e208e62404ecedea21479a7a625d3d6cfa
parentdd22da8e9539cc88193987b6997769ae4ede2b15
md5sum, sha*sum: add --tag to output a format indicating the algorithm

The format used is the BSD traditional format which looks like:
MD5 (/dev/null) = d41d8cd98f00b204e9800998ecf8427e

* NEWS: Add new feature info.
* doc/coreutils.texi (md5sum invocation): Add detailed information
about the new --tag option.
* src/md5sum.c: Add the new --tag option for BSD-style output.
(bsd_split_3): Add ESCAPED_FILENAME parameter.
(print_filename): New function refactored from main().
(filename_unescape): New function refactored from split_3().
* tests/misc/md5sum-bsd: Add tests for the new feature.
NEWS
doc/coreutils.texi
src/md5sum.c
tests/misc/md5sum-bsd