[Top][All Lists]

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

Re: printf error?

From: Chet Ramey
Subject: Re: printf error?
Date: Tue, 04 Apr 2006 15:15:18 -0400
User-agent: Thunderbird 1.5 (Macintosh/20051201)

Robinson, Mark wrote:
> hi
> Compiled bash version 3.1.16 on Solaris 9 (AIX 5.1 also shows problem)
> after configuring without parameters.  Got this error:
> %  ./bash --version
> GNU bash, version 3.1.16(3)-release (sparc-sun-solaris2.9)
> Copyright (C) 2005 Free Software Foundation, Inc.
> % ./bash -c 'printf "%0.5d\n" 1'
> 1

It's a bug in bash's asprintf/snprintf replacement.  This will happen
on all systems without an asprintf() in libc.  I will fix it.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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