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:
parent
39c793c885
commit
d05460a16c
3 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue