From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23076 invoked from network); 14 Mar 2002 18:54:28 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 14 Mar 2002 18:54:28 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16laMV-0007e5-00; Thu, 14 Mar 2002 13:54:03 -0500 Received: from cnxtsmtp1.conexant.com ([198.62.9.254] helo=cnxtmgmt1.conexant.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16laK7-0007Wr-00 for ; Thu, 14 Mar 2002 13:51:35 -0500 Received: from npblna1.nb.mindspeed.com (npblna1.la.mindspeed.com [10.231.18.14]) by cnxtmgmt1.conexant.com (8.9.3/8.9.3) with ESMTP id KAA29083 for ; Thu, 14 Mar 2002 10:51:32 -0800 (PST) From: doug.mildram@mindspeed.com Received: from dogbert.westboro.mindspeed.com ([10.1.172.122]) by npblna1.nb.mindspeed.com (Lotus Domino Release 5.0.8) with ESMTP id 2002031410513039:17223 ; Thu, 14 Mar 2002 10:51:30 -0800 Received: (from mildrad@localhost) by dogbert.westboro.mindspeed.com (8.11.5/8.11.5) id g2EIpSt09542; Thu, 14 Mar 2002 13:51:28 -0500 (EST) Message-Id: <200203141851.g2EIpSt09542@dogbert.westboro.mindspeed.com> Subject: solaris "nawk" fixes edit-pr awk: syntax error To: help-gnats@gnu.org X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on NPBLNA1/Server/Conexant(Release 5.0.8 |June 18, 2001) at 03/14/2002 10:51:30 AM, Serialize by Router on NPBLNA1/Server/Conexant(Release 5.0.8 |June 18, 2001) at 03/14/2002 10:51:32 AM, Serialize complete at 03/14/2002 10:51:32 AM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: help-gnats-admin@gnu.org Errors-To: help-gnats-admin@gnu.org X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion about GNU GNATS List-Archive: Date: Thu, 14 Mar 2002 10:54:00 -0000 X-SW-Source: 2002-q1/txt/msg00124.txt.bz2 Running edit-pr under solaris in some instances, e.g. changing State: or another reason-required field, causes edit-pr to attempt to prompt you for a reason, but under solaris, instead it barfs out: awk: syntax error near line 24 awk: illegal statement near line 24 I recalled that there was a "nawk", newer than "awk", and Solaris keeps them both in /bin, foolishly? choosing not to make "nawk" the default "awk". I found that edit-pr was really calling $LIBEXECDIR/gnats/diff-prs ....which is a "sh" script that really just does "awk", and lucky me, nawk seems to silence the lambs, and may even stop edit-pr from getting into a sick loop where it offers you to "(a)bort or (r)etry? " , but (due to awk error) (r)etry silently bombs out, so edit-pr keeps saying "(a)bort or (r)etry? " until you (a)bort.... at which point it claims that "Changed pr is in /tmp/epNNNN" (NNNN==PID), but...............the "trap" in edit-pr has REMOVED $new. MINOR suggestion: no harm in littering /tmp with epNNNN files. around line 120 in edit-pr I'm changing #trap 'rm -f $new $new.old $change_msg $fixfil ; exit 0' 0 changing to trap 'rm -f $new.old $change_msg $fixfil ; exit 0' 0 MAJOR FIX: for solaris diff-prs ....change awk to nawk. 25c25 < awk ' --- > nawk ' _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats