Re: Bash printf builtin bug

2005-03-30 Thread Luke Kendall
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

Re: Bash printf builtin bug

2005-03-30 Thread Paul Jarc
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

Re: Bash printf builtin bug

2005-03-30 Thread Chet Ramey
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

Re: Bash printf builtin bug

2005-03-30 Thread Paul Jarc
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

Re: Bash printf builtin bug

2005-03-30 Thread Chet Ramey
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

Re: Bash printf builtin bug

2005-03-29 Thread Luke Kendall
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

Re: Bash printf builtin bug

2005-03-29 Thread Chet Ramey
> 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

Bash printf builtin bug

2005-03-28 Thread luke
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