Dennis Williamson <dennistwilliam...@gmail.com> writes:

> When I ran make test I noticed a discrepancy in a couple of the times
> output during the printf tests. I pulled out the relevant section and
> this is what I get:
>
> LC_ALL=C
> LANG=C
> SECS=1275250155
> export TZ=EST5EDT
> printf "%()T\n" $SECS
> printf "%(%e-%b-%Y %T %Z)T\n" $SECS  # added %Z
>
> result:
>
> 15:09:15
> 30-May-2010 15:09:15 CDT
>
> printf.right says it should be "16:09:15" in both cases. Note that the
> %Z I added outputs CDT.

bash fails to put TZ in its own environment where tzset can find it.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to