[gnu.utils.bug] IBM-PC GAWK Bug?

BEC.SHAPIN@ECLA.USC.EDU (Ted Shapin) (01/20/89)

Return-Path: <@ECLC:tower@wheaties.ai.mit.edu>
Received: from ECLC by ECLA with DECnet; Thu 19 Jan 89 15:33:16-PST
Received: from [128.52.38.47.] (for wheat-chex.ai.mit.edu) by ECLC.USC.EDU; Thu 19 Jan 89 15:30:53-PST
Received: by wheat-chex.ai.mit.edu; Thu, 19 Jan 89 18:28:11 EST
Date: Thu, 19 Jan 89 18:28:11 EST
From: tower@wheaties.ai.mit.edu (Leonard H. Tower Jr.)
Message-Id: <8901192328.AA28455@wheat-chex.ai.mit.edu>
To: BEC.SHAPIN%ECLA@eclc.usc.edu
In-Reply-To: Ted Shapin's message of Thu 19 Jan 89 13:06:44-PST <12463867081.27.BEC.SHAPIN@ECLA.USC.EDU>
Subject: IBM PC AWK bug?

please forward this to bug-gnu-utils@prep.ai.mit.edu, which is the
right place for gawk bug reports.

Return-Path: <BEC.SHAPIN%ECLA.#DECnet@eclc.usc.edu>
Date: Thu 19 Jan 89 13:06:44-PST
From: Ted Shapin <BEC.SHAPIN%ECLA@eclc.usc.edu>
Subject: IBM PC AWK bug?
To: info-gnu-emacs@prep.ai.mit.edu
Phone: (714)961-3393; Mail:Beckman Instruments, Inc.
Mail-Addr: 2500 Harbor Blvd., X-11, Fullerton CA 92634

# The version of GAWK for the IBM-PC that was created by
# Andy Estes and Steve Liberty has a bug in gsub(). 
# It doesn't return the correct number of substitions made
# The following program prints "1" instead of "2"
{print gsub(/;/,"")}
# when reading the input record:  asdf ; zxcv ;
# Does anyone have a fix?

-------

-------