Article View: gnu.utils.bug
Article #1440[BEC.SHAPIN%ECLA@eclc.usc.edu: IBM PC AWK bug?]
From: Richard Stallman
Date: Fri, 20 Jan 1989 00:36
Date: Fri, 20 Jan 1989 00:36
17 lines
1046 bytes
1046 bytes
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?
-------
Technical Details
Message-ID:
<8901200036.AA01161@sugar-bombs.ai.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!WHEATIES.AI.MIT.EDU!rmsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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