mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
printf: output of double-quote should not be escaped
This is obtained by escaping the sequence `\"` as `"`.
This commit is contained in:
parent
0071442cba
commit
47e908bc6c
2 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,11 @@ fn escaped_slash() {
|
|||
.stdout_only("hello\\ world");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unescaped_double_quote() {
|
||||
new_ucmd!().args(&["\\\""]).succeeds().stdout_only("\"");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn escaped_hex() {
|
||||
new_ucmd!().args(&["\\x41"]).succeeds().stdout_only("A");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue