On Mon, Jan 29, 2007 at 10:16:55PM +0100, Igor Sobrado wrote:
>
> I think that the "-f" option requires an argument. The argument
> is not optional, though. It seems that the case block that manages
> this option requires an argument. If the argument to "-f" is
> optional it can be written as "[prog | -f [progfile]]" but I
> believe that it is not optional, but required. In any case,
> the "f" option in "-safe" seems superfluous.
>
> The patches submitted remove the "f" option in the block of
> options without argument "-s, -a, -f, -e" in both main.c
> and the manual page for awk(1).
>
> Hope you will like this change too. Feel free to change the
> patch if you do not like it; I believe that removing the "f"
> option on "-safe" is good, but I can be wrong.
>
> Best wishes,
> Igor.
ah, ok. it is not 4 options (-s, -a, -f, and -e), but one (-safe, as in
"not in danger"). that's why it is described as a "...first (and not
very reliable) approximation to a ``safe'' version of awk."
you are confusing that with the -f option, which does require an
argument: [prog | -f progfile]
hence:
[-safe] [-V]
and not the more usual:
[-safeV]
hope that's clear ;)
jmc