mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
echo: make -e and -E override each other
This commit is contained in:
parent
d63d4a7658
commit
191eb9ac12
2 changed files with 17 additions and 2 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