Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!WHEATIES.AI.MIT.EDU!rms From: rms@WHEATIES.AI.MIT.EDU (Richard Stallman) Newsgroups: gnu.utils.bug Subject: [BEC.SHAPIN%ECLA@eclc.usc.edu: IBM PC AWK bug?] Message-ID: <8901200036.AA01161@sugar-bombs.ai.mit.edu> Date: 20 Jan 89 00:36:35 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17 Return-Path: Date: Thu 19 Jan 89 13:06:44-PST From: Ted Shapin 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? -------