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

PATCH: The time builtin forgot to unmetafy TIMEFMT



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