bug-bash
[Top][All Lists]
Advanced

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

Re: small fix for lib/sh/snprintf.c


From: Chet Ramey
Subject: Re: small fix for lib/sh/snprintf.c
Date: Sun, 15 Apr 2012 19:14:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 4/13/12 9:57 AM, Petr Sumbera wrote:
> On 04/13/12 03:18 PM, Petr Sumbera wrote:
> 
>> Problem 2:
>> ==========
>>
>> bash -c 'printf "x%+010.0fx\n" 123'
>> x000000+123x
>>
>> where it should be:
>> x+000000123x
>>
>> Fixed in chunk #3 (but the problem is there also for other types!).
> 
> My fix breaks following case:

Thanks, the patches are very helpful.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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