Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/uu/cksum/src/cksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ pub fn uu_app() -> Command {
.long(options::TEXT)
.short('t')
.hide(true)
.overrides_with(options::BINARY)
.action(ArgAction::SetTrue)
.requires(options::UNTAGGED),
)
Expand Down
2 changes: 1 addition & 1 deletion src/uu/hashsum/src/hashsum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ pub fn uu_app_common() -> Command {
translate!("hashsum-help-binary-other")
}
})
.overrides_with(options::TEXT)
.action(ArgAction::SetTrue),
)
.arg(
Expand Down Expand Up @@ -278,7 +279,6 @@ pub fn uu_app_common() -> Command {
translate!("hashsum-help-text-other")
}
})
.conflicts_with("binary")
.action(ArgAction::SetTrue),
)
.arg(
Expand Down
13 changes: 13 additions & 0 deletions tests/by-util/test_hashsum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,19 @@ fn test_check_sha1() {
.stderr_is("");
}

#[cfg(target_os = "linux")]
#[test]
fn test_text_binary_device() {
let scene = TestScenario::new(util_name!());

scene
.ccmd("md5sum")
.arg("--text")
.arg("--binary")
.arg("/dev/null")
.succeeds();
}

#[test]
fn test_check_md5_ignore_missing() {
let scene = TestScenario::new(util_name!());
Expand Down
Loading