|Date:||Sun, 21 Sep 2003 01:00:49 +0200|
|User-agent:||Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916|
Paul Richardson wrote:
Before I embark on learning some awk, I was wondering if anyone else in the 4.0 release of gnats. I get errors pointing to lines 24 -> 26 of diff-prs when I try and run it on our solaris system. What happens is when I invoke edit-pr and get to the point where I change the value of the state and then write the modified pr out, I get a dialogue indicating that I should give a reason for the change. The problem seems to be I the awk code in diff-prs…
I just committed a fix to CVS. Basically, /usr/bin/awk on Solaris is ancient, so it doesn't support the sub command for substring substitution, which is what happens on lines 24, 25 and 26 in the diff-prs script. Solaris and other OSes with old awks usually have a 'nawk' command which is a more modern awk implementation.
I have added the standard autoconf check for awk to the GNATS configure setup. This basically checks for gawk, mawk, nawk, and awk, in that order (gawk, GNU awk, is generally considered the best implementation), and uses the best implementation available in the diff-prs script.
Look at https://savannah.gnu.org/cvs/?group=gnats for instructions on checking out the CVS version of GNATS.
|[Prev in Thread]||Current Thread||[Next in Thread]|