[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash printf builtin bug
From: |
Luke Kendall |
Subject: |
Re: Bash printf builtin bug |
Date: |
Wed, 30 Mar 2005 09:20:08 +1000 (EST) |
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?
Thanks,
luke