logo       

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

shells.bash.bugs

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

> 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@xxxxxxxxxxx http://tiswww.tis.cwru.edu/~chet/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise