mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 19:36:16 +00:00
Merge pull request #5635 from tertsdiepraam/fix-echo-override
`echo`: make `-e` and `-E` override each other
This commit is contained in:
commit
3dad5d4d56
3 changed files with 18 additions and 3 deletions
|
@ -117,6 +117,19 @@ fn test_escape_newline() {
|
|||
.stdout_only("\na\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_escape_override() {
|
||||
new_ucmd!()
|
||||
.args(&["-e", "-E", "\\na"])
|
||||
.succeeds()
|
||||
.stdout_only("\\na\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["-E", "-e", "\\na"])
|
||||
.succeeds()
|
||||
.stdout_only("\na\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_escape_no_further_output() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue