From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11501 invoked from network); 20 Sep 2003 23:03:38 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 20 Sep 2003 23:03:38 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0qhe-0003w8-Vg for listarch-gnats-devel@sources.redhat.com; Sat, 20 Sep 2003 18:59:46 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A0qhW-0003vL-1L for help-gnats@gnu.org; Sat, 20 Sep 2003 18:59:38 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A0qhS-0003rv-9H for help-gnats@gnu.org; Sat, 20 Sep 2003 18:59:36 -0400 Received: from [192.18.98.43] (helo=brmea-mail-2.sun.com) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0qhR-0003rB-NY for help-gnats@gnu.org; Sat, 20 Sep 2003 18:59:33 -0400 Received: from lego-mail1.Norway.Sun.COM ([129.159.112.5]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id h8KMxVxK000101; Sat, 20 Sep 2003 16:59:31 -0600 (MDT) Received: from sun.com ([129.159.115.202]) by lego-mail1.Norway.Sun.COM (8.12.9+Sun/8.12.9/ENSMAIL,v2.3beta1412) with ESMTP id h8KMxT7S012600; Sun, 21 Sep 2003 00:59:30 +0200 (MEST) Message-ID: <3F6CDC21.9020007@sun.com> Date: Mon, 22 Sep 2003 18:04:00 -0000 From: Yngve Svendsen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Richardson References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by brmea-mail-2.sun.com id h8KMxVxK000101 Cc: help-gnats@gnu.org Subject: Re: diff-prs X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2003-q3/txt/msg00094.txt.bz2 Paul Richardson wrote: > Before I embark on learning some awk, I was wondering if anyone else in=20 > the 4.0 release of gnats. I get errors pointing to lines 24 -> 26 of=20 > diff-prs when I try and run it on our solaris system. What happens is=20 > when I invoke edit-pr and get to the point where I change the value of=20 > the state and then write the modified pr out, I get a dialogue=20 > indicating that I should give a reason for the change. The problem seems= =20 > to be I the awk code in diff-prs=85 I just committed a fix to CVS. Basically, /usr/bin/awk on Solaris is=20 ancient, so it doesn't support the sub command for substring=20 substitution, which is what happens on lines 24, 25 and 26 in the=20 diff-prs script. Solaris and other OSes with old awks usually have a=20 'nawk' command which is a more modern awk implementation. I have added the standard autoconf check for awk to the GNATS configure=20 setup. This basically checks for gawk, mawk, nawk, and awk, in that=20 order (gawk, GNU awk, is generally considered the best implementation),=20 and uses the best implementation available in the diff-prs script. Look at https://savannah.gnu.org/cvs/?group=3Dgnats for instructions on=20 checking out the CVS version of GNATS. Yngve Svendsen _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats