Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 0x9F when printing ""
- X-seq: zsh-workers 36552
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: 0x9F when printing ""
- Date: Thu, 17 Sep 2015 21:02:59 -0700
- In-reply-to: <20150918001948.GG1956@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150918001948.GG1956@tarsus.local2>
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