bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk option processing


From: Paul Eggert
Subject: Re: gawk option processing
Date: Mon, 20 May 2002 10:35:45 -0700 (PDT)

> From: Stepan Kasal <address@hidden>
> Date: Mon, 20 May 2002 15:27:24 +0200

> Since the following two commands are equvalent:
>       $ awk --re-interval -F':{2}' 'BEGIN{$0="a::b";print $2}'
>       b
>       $ awk -F':{2}' --re-interval 'BEGIN{$0="a::b";print $2}'
>       b
> the following two should also be:
>       $ awk --traditional -F\t 'BEGIN{$0="atc\tha";print $2}'
>       ha
>       $ awk -F\t --traditional 'BEGIN{$0="atc\tha";print $2}'
>       c       ha
> But, as you see, they are not.

Thanks for sending in that bug report.  I'd like to second the motion
that the order of options should not matter, as POSIX requires this
behavior (for the POSIX options anyway) -- it's part of the Utility
Syntax Guidelines.  It's a good idea for this rule to apply to all
options, not just the POSIX-required ones.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]