From owner-freebsd-current Thu Nov 11 14:10:44 1999 Delivered-To: freebsd-current@freebsd.org Received: from barracuda.aquarium.rtci.com (barracuda.aquarium.rtci.com [208.11.247.5]) by hub.freebsd.org (Postfix) with ESMTP id C9F1514E28 for ; Thu, 11 Nov 1999 14:10:40 -0800 (PST) (envelope-from tstromberg@rtci.com) Received: from rtci.com (karma.afterthought.org [208.11.244.6]) by barracuda.aquarium.rtci.com (8.9.3+Sun/8.9.3) with ESMTP id RAA22001 for ; Thu, 11 Nov 1999 17:10:51 -0500 (EST) Message-ID: <382B3EDE.F390B422@rtci.com> Date: Thu, 11 Nov 1999 17:10:38 -0500 From: Thomas Stromberg Organization: Research Triangle Commerce, Inc. X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Bad 'grep' behaviour in -CURRENT, faulty binary detection? References: <382B2711.E13A1CC8@rtci.com> <19991111132031.A60417@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David O'Brien wrote: > > On Thu, Nov 11, 1999 at 03:29:05PM -0500, Thomas Stromberg wrote: > > I just happened to notice this today. For some reason 'grep' seems to > > think that 'set' output is binary, not text. Seems that GNU grep 2.3 is > > a little too sensitive to text/binary detection. > > I've got a notion to change this. The -CURRENT grep is also very > misleading w/ ``grep -l'' in that you will get "hits" on binary files > because you can't see that "is a binary file" message to know better. > > The output of that message should be asked for with an option, not the > default. I can't imagine how many people are going to get weird/eronious > output from scripts now due to it. > I think it's good as a default, nothing annoys me more then "grep -R function *" in a source directory and hitting all the binaries and getting my screen splattered with high ascii. I just wish it's binary detection was a wee bit more accurate.. I don't see what's wrong with "grep -l", it does exactly what I expected it to do. It's just expected to tell you that a file matched, not anything more (anything more could cause grave problems with scripts, including some I've written).. [root@karma] /tmp> grep -l expat * expat expat-0.7.6.tar.gz wv (or maybe I'm just not understanding the issue). -- ====================================================================== thomas r. stromberg smtp://tstromberg@rtci.com assistant is manager / systems guru http://thomas.stromberg.org research triangle commerce, inc. finger://thomas@stromberg.org 'om mani pedme hung' pots://1.919.380.9771:3210 ================================================================[eof]= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message