1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

unexpand: add -f short alias for --first-only (#8229)

This commit is contained in:
Timothy G. 2025-06-19 21:59:23 +02:00 committed by GitHub
parent 39c793c885
commit d05460a16c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

View file

@ -95,6 +95,24 @@ fn unexpand_first_only_1() {
.stdout_is("\t\t A B");
}
#[test]
fn unexpand_first_only_2() {
new_ucmd!()
.args(&["-t3", "-f"])
.pipe_in(" A B")
.succeeds()
.stdout_is("\t\t A B");
}
#[test]
fn unexpand_first_only_3() {
new_ucmd!()
.args(&["-f", "-t8"])
.pipe_in(" A B")
.succeeds()
.stdout_is("\tA B");
}
#[test]
fn unexpand_trailing_space_0() {
// evil