On 30 Mar, Paul Jarc wrote:
> Ok. coreutils' printf does handle the "--" case. But other strings
> beginning with "-" are treated as format strings. I think that
> conforms, but I agree that it's less useful. Solaris printf is the
> only one I can find that agrees with coreutils; {Free,N
Chet Ramey <[EMAIL PROTECTED]> wrote:
> The SUSv3 has `none' in the OPTIONS section of the printf description.
> The description of that value in the `Utility Description Defaults'
> section of the standard requires that commands which accept operands
> but not options to recognize `--' and handle
Paul Jarc wrote:
> Chet Ramey <[EMAIL PROTECTED]> wrote:
>
>>That's what the `--' first argument is for: don't treat any remaining
>>arguments as possible options.
>
>
> Does printf have any options? If not is there any point in giving an
> error in this case? ISTM SUSv3 requires the first ar
Chet Ramey <[EMAIL PROTECTED]> wrote:
> That's what the `--' first argument is for: don't treat any remaining
> arguments as possible options.
Does printf have any options? If not is there any point in giving an
error in this case? ISTM SUSv3 requires the first argument to be a
format string, r
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
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 const
> Machine Type: i386-redhat-linux-gnu
>
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
>
> Description:
> Bash's builtin printf performs unwanted option argument interpretation
> on the format string:
That's what the `--' first argument is for: don't treat any rema
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONF