Skip to content

Commit

Permalink
sum: ambiguous options (#488)
Browse files Browse the repository at this point in the history
* This version of sum attempts to be compatible with NetBSD by offering -o 1 and -o 2 for the historic BSD and SYSV sum algorithms respectively
* When -o is used for selecting an algorithm, forbid -a option which is used for selecting newer algorithms such as md5
  • Loading branch information
mknos committed Mar 9, 2024
1 parent aa62cea commit 73d8293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/sum
Expand Up @@ -42,6 +42,7 @@ if ($Program =~ m/cksum/) {
$alg = \&sum1;
}
if (defined $opt{'a'}) {
help() if defined $opt{'o'};
my %codetab = (
'crc' => \&crc32,
'md5' => \&do_md5,
Expand Down

0 comments on commit 73d8293

Please sign in to comment.