Re: feature request: printf %(%s)T

2011-11-23 Thread Stephane CHAZELAS
2011-11-23, 12:00(-05), Chet Ramey: > On 11/22/11 4:53 PM, Greg Wooledge wrote: >> This is a feature request, rather than a bug. Bash 4.2's printf command >> has a lovely %(datefmt)T feature that allows it to print out formatted >> timestamps using the underlying operating system's strftime(3) rou

Re: feature request: printf %(%s)T

2011-11-23 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/23/11 12:29 PM, Eric Blake wrote: > On 11/23/2011 10:11 AM, Greg Wooledge wrote: >> On Wed, Nov 23, 2011 at 12:00:34PM -0500, Chet Ramey wrote: >>> I wonder if a better way to handle this is to require the %s expansion >>> at configure time and u

Re: feature request: printf %(%s)T

2011-11-23 Thread Eric Blake
On 11/23/2011 10:11 AM, Greg Wooledge wrote: > On Wed, Nov 23, 2011 at 12:00:34PM -0500, Chet Ramey wrote: >> I wonder if a better way to handle this is to require the %s expansion >> at configure time and use the strftime replacement in lib/sh if the C >> library's strftime doesn't implement it.

Re: feature request: printf %(%s)T

2011-11-23 Thread Greg Wooledge
On Wed, Nov 23, 2011 at 12:00:34PM -0500, Chet Ramey wrote: > I wonder if a better way to handle this is to require the %s expansion > at configure time and use the strftime replacement in lib/sh if the C > library's strftime doesn't implement it. What systems, if you know, do > not handle %s? HP

Re: feature request: printf %(%s)T

2011-11-23 Thread Chet Ramey
On 11/22/11 4:53 PM, Greg Wooledge wrote: > This is a feature request, rather than a bug. Bash 4.2's printf command > has a lovely %(datefmt)T feature that allows it to print out formatted > timestamps using the underlying operating system's strftime(3) routine. > It even allows bash to print the