AWK Bug: multple -f options do not work
Petric Frank
pfrank at gmx.de
Fri Mar 23 11:50:03 PDT 2007
Hello,
On Friday 23 March 2007 11:51, Luciano Miguel Ferreira Rocha wrote:
> On Fri, Mar 23, 2007 at 08:41:13AM +0100, Bernhard Fischer wrote:
> > On Fri, Mar 23, 2007 at 07:56:43AM +0100, Petric Frank wrote:
> > >Hello,
> > >
> > >i saw that a new release (1.5.0) is out.
> > >
> > >It is good to see that awk now supports multiple -v options, but i miss
> > >multiple -f options.
> > >
> > >Since i am new to this mailing list i had only the chance to dig into
> > > the archive at busybox.net. There i found the mail from Bernhard
> > > Fischer (dd: Sat Mar 10 04:23:37 PST 2007). I think the analogous
> > > extension for the -f option could be easy.
> >
> > ok. Which options are supposed to be available multiple times?
> > Let's straighten these out at once and not for each individual option.
>
> Susv3: http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html
>
> -f progfile
> Specify the pathname of the file progfile containing an awk program.
> If multiple instances of this option are specified, the concatenation
> of the files specified as progfile in the order specified shall be the awk
> program. The awk program can alternatively be specified in the command line
> as a single argument.
>
> -v assignment
> The application shall ensure that the assignment argument is in the
> same form as an assignment operand. The specified variable assignment
> shall occur prior to executing the awk program, including the actions
> associated with BEGIN patterns (if any). Multiple occurrences of this
> option can be specified.
As far as i can see both -v and -f can be used multiple times.
The sequence of files given by the -f options is significant.
regards
Petric
More information about the busybox
mailing list