Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!cwjcc!mailrus!ames!pasteur!ucbvax!ucdavis!iris!kwok From: kwok@iris.ucdavis.edu (Conrad Kwok) Newsgroups: comp.binaries.ibm.pc.d Subject: Bug fix for PC Gawk 2.02 Message-ID: <3791@ucdavis.ucdavis.edu> Date: 10 Mar 89 18:49:48 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: kwok@iris.ucdavis.edu (Conrad Kwok) Organization: U.C. Davis - Department of Electrical Engineering and Computer Science Lines: 39 John B. Thiel (jbthiel@ogccse.ogc.edu) in his article writes: > > Three possible bugs I have noticed in 2.02 beta port of Gawk to IBMPC > recently posted to binaries: > > 1) The '+' regular expression operator does not seem to work. > > Ex: Given a data input file containing lines > 1aa1 > 2bb2 > 1aa2 > 1aa1 > > The pattern/action command: > /1a+1/ {print} > does not work (nothing prints), whereas equivalent > /1aa*1/ {print} > works as expected (two lines printed). > This problem is now fixed. I didn't make any changes to the source codes. The only change I made is to re-compile regex.c with -Oa OFF (i.e. -Oilt -Gs instead of -Ox) and link the program again. The program also works when I compile the whole program in small model (the version I am using). So I assume there is at least a optimization bug in MSC 5.1 but I don't have time to track down the problem. The fixes to the other two bugs are posted about 2 weeks ago by Scott Garfinkle (smsdpg!seg@uunet.uu.net) in comp.binaries.ibm.pc.d. The new merged diff file, the new makefile and the new executable are now available for anonymous ftp in clover.ucdavis.edu[128.120.57.1]:pub/gawk202e.arc. I shall try to put this version on simtel20. Please don't ask me to mail it to you. I am too busy to do it right now. --Conrad