1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #7693 from sargas/escape_empty_string

uucore/quoting_style: Add support for quoting/escaping empty strings
This commit is contained in:
Dorian Péron 2025-04-13 23:05:28 +02:00 committed by GitHub
commit c35d26dc51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 1 deletions

View file

@ -242,6 +242,11 @@ fn sub_q_string_special_non_printable() {
.stdout_only("non-printable: test~");
}
#[test]
fn sub_q_string_empty() {
new_ucmd!().args(&["%q", ""]).succeeds().stdout_only("''");
}
#[test]
fn sub_char() {
new_ucmd!()