Skip to content

Commit 47084a3

Browse files
oech3oech3
authored andcommitted
lib.rs: Remove non GNU hashsum aliases
1 parent a7e4e91 commit 47084a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/uucore/src/lib/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ pub fn get_canonical_util_name(util_name: &str) -> &str {
170170
"[" => "test",
171171

172172
// hashsum aliases - all these hash commands are aliases for hashsum
173-
"md5sum" | "sha1sum" | "sha224sum" | "sha256sum" | "sha384sum" | "sha512sum"
174-
| "sha3sum" | "sha3-224sum" | "sha3-256sum" | "sha3-384sum" | "sha3-512sum"
175-
| "shake128sum" | "shake256sum" | "b2sum" | "b3sum" => "hashsum",
173+
"md5sum" | "sha1sum" | "sha224sum" | "sha256sum" | "sha384sum" | "sha512sum" | "b2sum" => {
174+
"hashsum"
175+
}
176176

177177
"dir" => "ls", // dir is an alias for ls
178178

0 commit comments

Comments
 (0)