bug-bash
[Top][All Lists]
Advanced

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

Re: Bash printf builtin bug


From: Chet Ramey
Subject: Re: Bash printf builtin bug
Date: Wed, 30 Mar 2005 13:04:59 -0500
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Luke Kendall wrote:
> On 29 Mar, Chet Ramey wrote:
> 
>> That's what the `--' first argument is for:  don't treat any remaining 
>> arguments as possible options. 
> 
> 
> In that sense, I suppose it *is* consistent with all the other
> commands.  It's just a trap that the user must be aware of (as they must
> in general), when constructing commands from variable components.
> 
> So it would always be safe to use: printf -- "format-str" args,
> which probably should be the recommended usage in the man page, rather
> than: printf "format-str" args.
> 
> BTW, the bash man entry doesn't mention any options for the builtin
> printf - does it accept --version and --help like the standalone one
> does?

No.  None of the bash builtins currently accept those options.

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




reply via email to

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