about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-04-04 14:21:50 -0700
committerBart Schaefer <schaefer@zsh.org>2022-04-04 14:21:50 -0700
commitb80d1600395c46b24ebe8d34e40fb4e660692de1 (patch)
tree652cd1d82ac42ec66a41043395736a1fdb389e4c /Src/utils.c
parentbdd37b4c1490caad4750402cee887bb19e3502d7 (diff)
downloadzsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.gz
zsh-b80d1600395c46b24ebe8d34e40fb4e660692de1.tar.xz
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.c11
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: