Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 0x9F when printing ""



On Sep 18, 12:19am, Daniel Shahaf wrote:
}
} % print -r - ${(qqqq):-""}
} $'\237'
} 
} That output is wrong; should be «$''».

diff --git a/Src/utils.c b/Src/utils.c
index ca68eae..d5fd88c 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -5385,6 +5385,12 @@ quotestring(const char *s, char **e, int instring)
     u = s;
     if (instring == QT_DOLLARS) {
 	/*
+	 * The only way to get Nularg here is when
+	 * it is placeholding for the empty string?
+	 */
+	if (inull(*u))
+	    *u++;
+	/*
 	 * As we test for printability here we need to be able
 	 * to look for multibyte characters.
 	 */



Messages sorted by: Reverse Date, Date, Thread, Author