Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!ECLC.USC.EDU!BEC.SHAPIN%ECLA From: BEC.SHAPIN%ECLA@ECLC.USC.EDU (Ted Shapin) Newsgroups: gnu.emacs Subject: IBM PC AWK bug? Message-ID: <12463867081.27.BEC.SHAPIN@ECLA.USC.EDU> Date: 19 Jan 89 21:06:44 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 9 # 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? -------