Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jan 2000 18:54:43 -0800
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        stable@FreeBSD.ORG
Subject:   Re: HEADS UP: GNU grep 2.3 is now in 3.4-STABLE
Message-ID:  <20000102185443.B24637@relay.nuxi.com>
In-Reply-To: <20000102125211.A62593@relay.ucb.crimea.ua>
References:  <20000102125211.A62593@relay.ucb.crimea.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
-- David    (obrien@NUXI.com)


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?20000102185443.B24637>