rms@WHEATIES.AI.MIT.EDU (Richard Stallman) (01/20/89)
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? -------