From b80d1600395c46b24ebe8d34e40fb4e660692de1 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 4 Apr 2022 14:21:50 -0700 Subject: 49991: single-byte brace expansion handles $'\0' and control character output aligns with multibyte --- Src/utils.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Src/utils.c') 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: -- cgit 1.4.1