Re: Bash 4.2 printf %()T seems to ignore TZ

2011-02-16 Thread Greg Wooledge
On Tue, Feb 15, 2011 at 09:49:16PM -0600, Dennis Williamson wrote: 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 I can't duplicate your problem on HP-UX 10.20: imadev:~$ s=1275250155;

Re: Bash 4.2 printf %()T seems to ignore TZ

2011-02-16 Thread Dennis Williamson
On Wed, Feb 16, 2011 at 7:22 AM, Greg Wooledge wool...@eeg.ccf.org wrote: On Tue, Feb 15, 2011 at 09:49:16PM -0600, Dennis Williamson wrote: 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 I

Re: Bash 4.2 printf %()T seems to ignore TZ

2011-02-16 Thread Andreas Schwab
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

Bash 4.2 printf %()T seems to ignore TZ

2011-02-15 Thread Dennis Williamson
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