bug-bash
[Top][All Lists]
Advanced

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

Re: Not a bug... but, where is 'sprintf' builtin?


From: Chet Ramey
Subject: Re: Not a bug... but, where is 'sprintf' builtin?
Date: Mon, 18 Oct 2004 11:09:09 -0400

> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 3.0
> Patch Level: 0
> 
> Description:
> 
>     In ./CHANGES, it mentions 'sprintf' builtin,
> 
>       > a.  There is a new loadable builtin: sprintf, with calling syntax
>       >               sprintf var format [args]
>       >     This provides an easy way to simulate ksh left- and 
> right-justified
>       >     variable values.
> 
>     Has it been withdrawn?  I guess, you can do
>       var=`printf format [args]`
>     instead, but...

I took it out of the distribution over three years ago.  I didn't keep
up with the changes to printf, on which it's based, and, at the time,
didn't have any portable way to keep it from trivially overwriting its
buffers.  Now that asprintf/ vasprintf are available more universally,
I can look at updating it.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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