1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 19:36:16 +00:00

touch: don't generate an error on 'touch -h -'

This commit is contained in:
Sylvestre Ledru 2023-04-22 18:54:43 +02:00
parent aaea758b6a
commit 84e0610487
2 changed files with 21 additions and 4 deletions

View file

@ -833,3 +833,10 @@ fn test_touch_no_dereference_dangling() {
ucmd.args(&["-h", "dangling"]).succeeds();
}
#[test]
fn test_touch_dash() {
let (_, mut ucmd) = at_and_ucmd!();
ucmd.args(&["-h", "-"]).succeeds().no_stderr().no_stdout();
}