NEWS revision 56230
1  - The new option --binary-files=TYPE makes grep assume that a binary input
2    file is of type TYPE.
3    --binary-files='binary' (the default) outputs a 1-line summary of matches.
4    --binary-files='without-match' assumes binary files do not match.
5    --binary-files='text' treats binary files as text
6	(equivalent to -a or --text).
7
8Version 2.4:
9
10  - egrep is now equivalent to `grep -E' as required by POSIX,
11    removing a longstanding source of confusion and incompatibility.
12    `grep' is now more forgiving about stray `{'s, for backward
13    compatibility with traditional egrep.
14
15  - The lower bound of an interval is not optional.
16    You must use an explicit zero, e.g. `x{0,10}' instead of `x{,10}'.
17    (The old documentation incorrectly claimed that it was optional.)
18
19  - The --revert-match option has been renamed to --invert-match.
20
21  - The --fixed-regexp option has been renamed to --fixed-string.
22
23  - New option -H or --with-filename.
24
25  - New option --mmap.  By default, GNU grep now uses read instead of mmap.
26    This is faster on some hosts, and is safer on all.
27
28  - The new option -z or --null-data causes `grep' to treat a zero byte
29    (the ASCII NUL character) as a line terminator in input data, and
30    to treat newlines as ordinary data.
31
32  - The new option -Z or --null causes `grep' to output a zero byte
33    instead of the normal separator after a file name.
34
35  - These two options can be used with commands like `find -print0',
36    `perl -0', `sort -z', and `xargs -0' to process arbitrary file names,
37    even those that contain newlines.
38
39  - The environment variable GREP_OPTIONS specifies default options;
40    e.g. GREP_OPTIONS='--directories=skip' reestablishes grep 2.1's
41    behavior of silently skipping directories.
42
43  - You can specify a matcher multiple times without error, e.g.
44    `grep -E -E' or `fgrep -F'.  It is still an error to specify
45    conflicting matchers.
46
47  - -u and -U are now allowed on non-DOS hosts, and have no effect.
48
49  - Modifications of the tests scripts to go around the "Broken Pipe"
50    errors from bash. See Bash FAQ.
51
52  - New option -r or --recursive or --directories=recurse.
53    (This option was also in grep 2.3, but wasn't announced here.)
54
55  - --without-included-regex disable, was causing bogus reports .i.e
56    doing more harm then good.
57
58Version 2.3:
59
60  - When searching a binary file FOO, grep now just reports
61    `Binary file FOO matches' instead of outputting binary data.
62    This is typically more useful than the old behavior,
63    and it is also more consistent with other utilities like `diff'.
64    A file is considered to be binary if it contains a NUL (i.e. zero) byte.
65
66    The new -a or --text option causes `grep' to assume that all
67    input is text.  (This option has the same meaning as with `diff'.)
68    Use it if you want binary data in your output.
69
70  - `grep' now searches directories just like ordinary files; it no longer
71    silently skips directories.  This is the traditional behavior of
72    Unix text utilities (in particular, of traditional `grep').
73    Hence `grep PATTERN DIRECTORY' should report
74    `grep: DIRECTORY: Is a directory' on hosts where the operating system
75    does not permit programs to read directories directly, and
76    `grep: DIRECTORY: Binary file matches' (or nothing) otherwise.
77
78    The new -d ACTION or --directories=ACTION option affects directory handling.
79    `-d skip' causes `grep' to silently skip directories, as in grep 2.1;
80    `-d read' (the default) causes `grep' to read directories if possible,
81    as in earlier versions of grep.
82
83  - The MS-DOS and Microsoft Windows ports now behave identically to the
84    GNU and Unix ports with respect to binary files and directories.
85
86Version 2.2:
87
88Bug fix release.
89
90  - Status error number fix.
91  - Skipping directories removed.
92  - Many typos fix.
93  - -f /dev/null fix(not to consider as an empty pattern).
94  - Checks for wctype/wchar.
95  - -E was using the wrong matcher fix.
96  - bug in regex char class fix
97  - Fixes for DJGPP
98
99Version 2.1:
100
101This is a bug fix release(see Changelog) i.e. no new features.
102
103  - More compliance to GNU standard.
104  - Long options.
105  - Internationalisation.
106  - Use automake/autoconf.
107  - Directory hierarchy change.
108  - Sigvec with -e on Linux corrected.
109  - Sigvec with -f on Linux corrected.
110  - Sigvec with the mmap() corrected.
111  - Bug in kwset corrected.
112  - -q, -L and -l stop on first match.
113  - New and improve regex.[ch] from Ulrich Drepper.
114  - New and improve dfa.[ch] from Arnold Robbins.
115  - Prototypes for over zealous C compiler.
116  - Not scanning a file, if it's a directory
117    (cause problems on Sun).
118  - Ported to MS-DOS/MS-Windows with DJGPP tools.
119
120See Changelog for the full story and proper credits.
121
122Version 2.0:
123
124The most important user visible change is that egrep and fgrep have
125disappeared as separate programs into the single grep program mandated
126by POSIX 1003.2.  New options -G, -E, and -F have been added,
127selecting grep, egrep, and fgrep behavior respectively.  For
128compatibility with historical practice, hard links named egrep and
129fgrep are also provided.  See the manual page for details.
130
131In addition, the regular expression facilities described in Posix
132draft 11.2 are now supported, except for internationalization features
133related to locale-dependent collating sequence information.
134
135There is a new option, -L, which is like -l except it lists
136files which don't contain matches.  The reason this option was
137added is because '-l -v' doesn't do what you expect.
138
139Performance has been improved; the amount of improvement is platform
140dependent, but (for example) grep 2.0 typically runs at least 30% faster
141than grep 1.6 on a DECstation using the MIPS compiler.  Where possible,
142grep now uses mmap() for file input; on a Sun 4 running SunOS 4.1 this
143may cut system time by as much as half, for a total reduction in running
144time by nearly 50%.  On machines that don't use mmap(), the buffering
145code has been rewritten to choose more favorable alignments and buffer
146sizes for read().
147
148Portability has been substantially cleaned up, and an automatic
149configure script is now provided.
150
151The internals have changed in ways too numerous to mention.
152People brave enough to reuse the DFA matcher in other programs
153will now have their bravery amply "rewarded", for the interface
154to that file has been completely changed.  Some changes were
155necessary to track the evolution of the regex package, and since
156I was changing it anyway I decided to do a general cleanup.
157