🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Arnold D. Robbins Fri, 20 Jan 1989 19:41
ibm pc awk bug
#1461
Author: Arnold D. Robbins
Date: Fri, 20 Jan 1989 19:41
19 lines
1255 bytes
| 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
| 
| # 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?

The Unix version does not display this bug, it correctly prints 2.

Arnold Robbins -- Emory University Computing Center | "Unix is a Registered
DOMAIN: arnold@unix.cc.emory.edu		    |  Bell of AT&T Trademark
UUCP: gatech!emoryu1!arnold  PHONE: +1 404 727-7636 |  Laboratories."
BITNET: arnold@emoryu1	     FAX:   +1 404 727-2599 |         -- Donn Seeley
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads