mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-27 15:01:00 +01:00
49991: single-byte brace expansion handles $'\0' and control character output aligns with multibyte
This commit is contained in:
parent
bdd37b4c14
commit
b80d160039
3 changed files with 17 additions and 12 deletions
11
Src/utils.c
11
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue