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: Chris F.A. Johnson
Subject: Re: Not a bug... but, where is 'sprintf' builtin?
Date: Sun, 17 Oct 2004 22:09:59 -0400 (EDT)

On Sun, 17 Oct 2004, William Park wrote:

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -O4 -march=i686
uname output: Linux node1 2.6.7 #6 SMP Sun Aug 22 23:49:58 EDT 2004 i686 
unknown unknown GNU/Linux
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...

    Unfortunately, using command substitution is very slow; sprintf
    would be a nice addition.

--
        Chris F.A. Johnson                      http://cfaj.freeshell.org
        =================================================================
                Everything in moderation -- including moderation




reply via email to

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