1
Fork 0
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:
Samuel Tardieu 2024-01-10 18:59:33 +01:00
parent 0071442cba
commit 47e908bc6c
2 changed files with 6 additions and 0 deletions

View file

@ -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");