bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chet Ramey
Subject: Re: feature request: printf %(%s)T
Date: Wed, 23 Nov 2011 14:18:34 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0

-----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 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-UX 10.20 and 11.11 are the ones I have.  It's a somewhat commonly
>> requested feature among Solaris users too, but I don't know which
>> versions of Solaris they are using.  There are probably many others.
>> At a guess, I would assume everything that isn't GNU/Linux or BSD.
> 
> Gnulib already provides a strftime replacement that guarantees %s, which
> is handy since the next version of POSIX is considering requiring %s in
> strftime().

Bash already has Arnold's strftime for those systems that don't provide it,
and it implements %s.

Chet

- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7NRwoACgkQu1hp8GTqdKu94ACeL7yFHDMaHgjv1ytZ9OvmgAm9
DS4Ani3cj1VXrbP9yuJEAf2iQANoY667
=w0fE
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]