Bash-4.2 patch 5

This commit is contained in:
Chet Ramey
2011-11-22 20:00:19 -05:00
parent aeb26a67db
commit 2bbe80583b
5 changed files with 28 additions and 4 deletions
+3
View File
@@ -465,6 +465,9 @@ printf_builtin (list)
secs = shell_start_time; /* roughly $SECONDS */
else
secs = arg;
#if defined (HAVE_TZSET)
sv_tz ("TZ"); /* XXX -- just make sure */
#endif
tm = localtime (&secs);
n = strftime (timebuf, sizeof (timebuf), timefmt, tm);
free (timefmt);