1
0
Fork 0
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:
Bart Schaefer 2022-04-04 14:21:50 -07:00
parent bdd37b4c14
commit b80d160039
3 changed files with 17 additions and 12 deletions

View file

@ -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: