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    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to