@var{file} of @samp{-}.
cksum also supports the @option{-a,--algorithm} option to select the
-digest algorithm to use, and this is the preferred interface
-to these digests, subsuming the other standalone checksumming utilities.
+digest algorithm to use. @command{cksum} is the preferred interface
+to these digests, subsuming the other standalone checksumming utilities,
+which can be emulated using @code{cksum -a md5 --untagged "$@@"} etc.
Synopsis:
@example
@item --tag
@opindex --tag
@cindex BSD output
-Note this option is not supported by the @command{cksum} command,
-as this is the default output format that it uses.
Output BSD style checksums, which indicate the checksum algorithm used.
As a GNU extension, if @option{--zero} is not used, file names with problematic
characters are escaped as described above, with the same escaping indicator of
The @option{--tag} option implies binary mode, and is disallowed with
@option{--text} mode as supporting that would unnecessarily complicate
the output format, while providing little benefit.
+The @command{cksum} command, uses @option{--tag} as its default output format.
@item -t
@itemx --text
{ "status", no_argument, NULL, STATUS_OPTION },
{ "warn", no_argument, NULL, 'w' },
{ "strict", no_argument, NULL, STRICT_OPTION },
+ { "tag", no_argument, NULL, TAG_OPTION },
{ "zero", no_argument, NULL, 'z' },
# if HASH_ALGO_CKSUM
# else
{ "binary", no_argument, NULL, 'b' },
{ "text", no_argument, NULL, 't' },
- { "tag", no_argument, NULL, TAG_OPTION },
# endif
#else
"), stdout);
# endif
# if HASH_ALGO_CKSUM
+ fputs (_("\
+ --tag create a BSD-style checksum (the default)\n\
+"), stdout);
fputs (_("\
--untagged create a reversed style checksum, without digest type\n\
"), stdout);
case UNTAG_OPTION:
prefix_tag = false;
break;
-# else
+# endif
case TAG_OPTION:
prefix_tag = true;
binary = 1;
break;
-# endif
case 'z':
digest_delim = '\0';
break;
"verifying checksums"));
usage (EXIT_FAILURE);
}
-#if HASH_ALGO_CKSUM
- if (!prefix_tag && do_check)
- {
- error (0, 0, _("the --untagged option is meaningless when "
- "verifying checksums"));
- usage (EXIT_FAILURE);
- }
-#else
+#if !HASH_ALGO_CKSUM
if (prefix_tag && do_check)
{
error (0, 0, _("the --tag option is meaningless when "