diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2022-04-04 14:21:50 -0700 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2022-04-04 14:21:50 -0700 |
| commit | b80d1600395c46b24ebe8d34e40fb4e660692de1 (patch) | |
| tree | 652cd1d82ac42ec66a41043395736a1fdb389e4c /Src/utils.c | |
| parent | 49990: casemodify() avoids metafying characters that it otherwise did not touch (diff) | |
| download | zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.gz zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.bz2 zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.lz zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.xz zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.zst zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.zip | |
49991: single-byte brace expansion handles $'\0' and control character output aligns with multibyte
Diffstat (limited to 'Src/utils.c')
| -rw-r--r-- | Src/utils.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Src/utils.c b/Src/utils.c index f9127c70c..66cb2a63a 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -557,9 +557,14 @@ nicechar(int c) *s++ = '\\'; c = 't'; } else if (c < 0x20) { - *s++ = '\\'; - *s++ = 'C'; - *s++ = '-'; + /* + if (quotable) { + *s++ = '\\'; + *s++ = 'C'; + *s++ = '-'; + } else + */ + *s++ = '^'; c += 0x40; } done: |
