Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: The time builtin forgot to unmetafy TIMEFMT
- X-seq: zsh-workers 33561
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: The time builtin forgot to unmetafy TIMEFMT
- Date: Mon, 27 Oct 2014 20:32:42 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=oxXD/h2SoJv2LJId/MM7DzI7g2oKt6BXmxBFSws6ECU=; b=xJlDgKktoMQPiDZS1cqFFQnyJiBEsKo2+8ao9XvJjDrysPqdTdqfMOlHYmf9I4Zx+M +v4WbALgp7H9xt1lSoFGsKmLRGOUd/Cg9so/Ado0rBpKjr9WPRqe8CJe8xf8/0m0+vWF flugLp7ywJC4x6SlFLPnfmF4uxfeTWzJg/K+Xdo/uFOwzPSvXJSnOvohPx1a73Xcdcxc nHXrT2IPZD9aszy+Pp67BFiGg7nwGvkZywZ9wAc2pyDotOqJ4toM+qYdqTXSay1LYkm3 j8kOVLTWkRjvtQYWn2h560ciykKemONY9m8q/eYkEDNwXyGeCJj54WCzCG9+qvje4axc DraA==
- 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
When TIMEFMT contains some high bit characters, the output was corrupted, this fixes it.
---
Src/jobs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/jobs.c b/Src/jobs.c
index bd95afb..5f55f80 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -711,7 +711,7 @@ printtime(struct timeval *real, child_times_t *ti, char *desc)
#endif
queue_signals();
- if (!(s = getsparam("TIMEFMT")))
+ if (!(s = unmetafy(getsparam("TIMEFMT"), NULL)))
s = DEFAULT_TIMEFMT;
for (; *s; s++)
--
2.1.0.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author