From owner-freebsd-hackers Tue Jan 23 13:47:04 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA20219 for hackers-outgoing; Tue, 23 Jan 1996 13:47:04 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA20204 for ; Tue, 23 Jan 1996 13:46:59 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA18394; Tue, 23 Jan 1996 14:34:29 -0700 From: Terry Lambert Message-Id: <199601232134.OAA18394@phaeton.artisoft.com> Subject: Re: recursive grep To: nate@sri.MT.net (Nate Williams) Date: Tue, 23 Jan 1996 14:34:28 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org In-Reply-To: <199601232134.OAA26295@rocky.sri.MT.net> from "Nate Williams" at Jan 23, 96 02:34:19 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk > Terry Lambert writes: > > The GNU derived find doesn't flush its output, so if you were to pipe > > it at that point (and use -print instead of a "/dev/null" argument to > > get the name), you would have your output screwed. > > Except that we're not using the GNU derived find, and we've fixed the > bug in the BSD find you are complaining about a *long* time ago. 1) If this was used in a shell script, you might want to run the same script on a Linux system. 2) You might install the GNU find for its other features. 3) The bug was only half-fixed, and then only for the specific case that I was dealing with, and still did not enforce write order guarantees between stdout and fd 2 in some circumstances (a more elaborate patch than the one adopted was posted, but was not itself adopted). > revision 1.5 > date: 1995/09/12 23:15:33; author: nate; state: Exp; lines: +3 -0 > Simpler fix to the find bug reported by Terry Lambert > > > [ Find to a file vs. to stdout ] produces different output because find > does not flush stdout when doing a -print. > > Submitted by: Jeffrey Hsu > > You're even mentioned in the log. :) I'll put it on my mantle with my many other accolades... 8-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.