From owner-freebsd-current Fri Nov 12 9: 9: 4 1999 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id D4D4C14DED for ; Fri, 12 Nov 1999 09:08:50 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (root@d60-025.leach.ucdavis.edu [169.237.60.25]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id JAA67234; Fri, 12 Nov 1999 09:08:24 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id JAA87874; Fri, 12 Nov 1999 09:08:24 -0800 (PST) (envelope-from obrien) Date: Fri, 12 Nov 1999 09:08:24 -0800 From: "David O'Brien" To: Alain Magloire Cc: tstromberg@rtci.com, freebsd-current@freebsd.org, bug-gnu-utils@gnu.org Subject: Re: Bad 'grep' behaviour in -CURRENT, faulty binary detection? Message-ID: <19991112090823.B87828@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <19991111132031.A60417@dragon.nuxi.com> <199911120213.VAA06622@mccoy2.ECE.McGill.CA> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <199911120213.VAA06622@mccoy2.ECE.McGill.CA>; from alainm@rcsm.ece.mcgill.ca on Thu, Nov 11, 1999 at 09:13:54PM -0500 X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 11, 1999 at 09:13:54PM -0500, Alain Magloire wrote: > Of course, you can. But I will join my voice to Paul and ask you not to. > This behaviour was a long standing request/grip where for example one > would do > > grep pattern * > > and have the terminal going bananas, if pattern was detected in binary What I was proposing to change was that binary files were ignored when "-l" was in affect. I was also implying that binary files should be silently ignored unless one uses the 2.3 "-a" flag. > I don't follow your logic for '-l'. whether it is grep-2.0 or grep-2.3 > They all show the filename containing a matching pattern. FreeBSD's previous grep had a "-a" flag to ignore binary files. Thus I'm trying to find a replacement for the old ``grep -al'' usage. > In the coming 2.4, if this is such problem for you, there is en environ > variable, that will restore the 2.0 behaviour(everything is text) Not quite what I'm looking for. I want a silent ignore of binary files. I think it should take an option to not ignore binary files. Add 2.3's "-a" if you *really* want full greping of binary files. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message