[comp.os.minix] possible bug-fix of "fgrep" for minix-1.5

nemossan@uitec.ac.jp (Sakurao NEMOTO) (10/31/90)

--------------------------------------------------------------------
Followings are the mail from one of my net-friends, who asks me to post
them to "comp.os.minix".

If you have any comments or you want to contact her, please post here,
comp.os.minix, or e-mail me (nemossan@uitec.ac.jp).  If you want to
e-mail me, please use this address, I mean, please NOT use "kddlab"
path.  The other day, I've received a mail via "kddlab" with much of
warning message from it.
						nemossan@uitec.ac.jp
--------------------------------------------------------------------

Possible bug fix for MINIX1.5 fgrep

	The frep in MINIX1.5 gets into a mess with -v option. For example,
the command line "fgrep -vf file2 file1" produces this output !

	output
	------
	data_a
	data_b
	data_c
	data_d

with following two files.

	file1		file2
	----------------------
	data_a		data_b
	data_b		data_d
	data_c
	Data_d
	----------------------

Here is a possible bug fix.
-------------------------------------------------------------
table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 fgrep.cdif.Z
M'YV-*@*">"+EB)DS<LK <3$FP90Z;@:.H0-"!@X0,6[H@*$Q1@R,.7+ 4-"Bz
M)(B#"1<V?!CQR<2*%S-NI*%C1@Z0(A4$W,FSIPJ= FG@8%'C(D\%($ DN(,Fy
M#9LR(%"@F$-'3AHW9YY&[ 'B3!DZ;*ZB, .'!0BJ5K&:K1%#1HH4($)P+?+$x
M"-P]2)4F".NF3IL5*W;D39# S!LY4=6 X IC!PC%/,Y6'?,&(AW':@#?51!"w
M;X(T9J*:N4H&!1VJ:*^>V:*FBUDZ8MBP=@U"ZQDZ:.;,ABL7A!TS;,*<V=R9v
M,.$S;^B\<5,&10K!28TG$),PS!KHGOL,3J ]^N?0*-@ %P["A D0E"W#I5[&u
M.G;N@\>P>3.G.=GG)$T*96'C8\F2@S'E%%12I8:55HMU]15?8Y4E65IGK-76t
M6W'-5==FWO'E%V#O%7988@DV]A@(D:&5GAN7/:89"'@51QAHHI%F&FI5J3;;s
M:['=6%L96.&F6VL4MNC9=U']%MQPG V9 '+*,>=<AX2QY]YV\'FGW0IZP8A"r
M"$:29]Z(/7!E8F4HIJ  EL8QN5QS^'FGI7A'EG?>B72L5]UU@W6GE'STV0<'q
!?D:2p
 o
end
--------------------------------------------------------------
	(Saeko Hirabayashi)

nemossan@uitec.ac.jp (Sakurao NEMOTO) (11/09/90)

In Message-ID: <147@uitecgw.uitec.ac.jp> Date: 31 Oct 90 01:45:41 GMT
I have posted
	>Subject: possible bug-fix of "fgrep" for minix-1.5
	>Keywords: fgrep, minix-1.5, possible bug-fix
instead of a net-friend of mine.

Today she e-mailed me to CANCEL that article, because she had mistaken
posting,  Thus, I've canceled the article and GATEWAY again her new ver-
sion of "possible bug fix for fgrep".
		Nov 09 '90 (Fri) 21:26 JST(+9:00)   nemossan@uitec.ac.jp

------------------------------------------------------------------------
Possible bug fix for MINIX1.5 fgrep

	Sorry, I have sent a wrong patch for a few days ago. Here is a proper
one.

	The fgrep in MINIX1.5 gets into a mess with -v option. For example,
the command line "fgrep -v -f file2 file1" produces this output !

	output
	------
	data_a
	data_b
	data_c
	data_d

with following two files.

	file1		file2
	----------------------
	data_a		data_b
	data_b		data_d
	data_c
	Data_d
	----------------------

Here is a possible bug fix.
-------------------------------------------------------------
table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 fgrep.cdif.Z
M'YV-*@*",'-&3ADX+L8D,"(G#0@G;^R  )$#1(P<.F#8T"%CAL4<.6 H:$'Rz
M89$K! TB5,C0(42)%#]FW"BCXL60"@+JW,E314Z!-'"PJ($#Q$X%$Q/<09.&y
M31D0*%#,H=/0S1FG;D#T '&F#!TV:=R@, .'!8BI5<^8K1%#1HH4($)L+?+$x
M"-P]2$$D2 #639TV*U;LR+O7S!LY4-5H!0%C!PC%/,Y2'?.FCALZCM4$OJL@w
MA-Z]:<Q -1.6# HZ4]&&/;-%31>S=,2P:?T:!-8S=-#,H0U7+@@[9MB$.</9v
M\]Z]9][0>>.F#(H4@Y,>%V,PS)KHGQ/T(:R=>VBH;((/!V'"! C*ENG I5[&u
M.O;N2<>P>3/'.5GH(TL&96$C!@B2)!&V5%-/1:6:55@MUM5788U5EF1IK=76t
M6W'-51=GTO7U5V#O)6 88B@HME5CCX$0&5KH79;99B#@91QHHHU5VFFI4;4:s
M;;#)AJ-M95B5VVZN4>AB=@E\AT((P E'7&=$)I#<<LT]U^%>[+G''7R?;;?"r
M9T8F.5YY)?:P%8J579:" EL>]R1SSN$GG9'A*4F>>2FJ!T*5UQ&V77SSU><@q
!?D8Fp
 o
end
--------------------------------------------------------------
	(Saeko Hirabayashi)