Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2000 12:53:21 +0200
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        stable@FreeBSD.ORG
Subject:   Re: HEADS UP: GNU grep 2.3 is now in 3.4-STABLE
Message-ID:  <20000103125321.A99904@relay.ucb.crimea.ua>
In-Reply-To: <20000102185443.B24637@relay.nuxi.com>; from David O'Brien on Sun, Jan 02, 2000 at 06:54:43PM -0800
References:  <20000102125211.A62593@relay.ucb.crimea.ua> <20000102185443.B24637@relay.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 02, 2000 at 06:54:43PM -0800, David O'Brien wrote:
> On Sun, Jan 02, 2000 at 12:52:11PM +0200, Ruslan Ermilov wrote:
> > Here is the list of changes made, that could cause a breakage:
> > 
> > o The -a option behaves differently.  Prior to that, it caused `grep' to
> >   skip searching in binary files.  Now, without -a option, when searching
> >   a binary file FOO, `grep' just reports `Binary file FOO matches' instead
> >   of outputting binary data.  This is typically more useful than the old
> >   behavior, and it is also more consistent with other GNU utilities like
> >   `diff'.  A file is considered to be binary if it contains a NUL (i.e.
> >   zero) byte.  The new -a or --text option causes `grep' to assume that
> >   all input is text.  (This option has the same meaning as with `diff').
> >   Use it if you want binary data in your output.
> 
> The down side of this is if you used to use ``grep -al'' to only get a
> list of text files with hits, you can not duplicate this behavior with
> GNU grep 2.3.
> 
But you can still skip directories from matching with --directories=skip
(or `-d skip' in short form).

-- 
Ruslan Ermilov		Sysadmin and DBA of the
ru@ucb.crimea.ua	United Commercial Bank,
ru@FreeBSD.org		FreeBSD committer,
+380.652.247.647	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000103125321.A99904>