Subject: Re: ./build.sh: problem with awk script
To: None <netbsd-users@netbsd.org>
From: Chuck Swiger <cswiger@mac.com>
List: netbsd-users
Date: 09/08/2006 14:43:45
On Sep 8, 2006, at 1:25 PM, Aleksey Cheusov wrote:
> This message is produced by gawk.
> For what reasons gawk package
> installs /usr/pkg/bin/awk file (symlink to gawk)?
>
> TODO ;-)
> 1) \. should be changed to [.] in awk scripts to make them more
> portable
> 2) it is _probably_ better to remove /usr/pkg/bin/awk file
> from gawk package.
Arguably, one should be listing /usr/pkg/bin later in your $PATH
than /usr/bin; another solution would be for build.sh to use absolute
pathnames or to set and export a more controlled version of $PATH
which gets inherited by the commands it runs...
Or, as a completely unrelated solution, one might try to persuade the
maintainers of gawk to not nag about regex contructs that work just
fine with the historical AWK written by Aho, whomever [1], and
Kernighan.
--
-Chuck
[1]: With apologies to Mr. Weinberger, I remembered two of the three
without checking the manpage. :-)