Deleted Added
full compact
NEWS (126432) NEWS (131554)
1Version 2.5.1
2 - This is a bugfix release. No new features.
3
4Version 2.5
5 - The new option --label allows to specify a different name for input
6 from stdin. See the man or info pages for details.
7
8 - The internal lib/getopt* files are no longer used on systems providing
9 getopt functionality in their libc (e.g. glibc 2.2.x).
10 If you need the old getopt files, use --with-included-getopt.
11
12 - The new option --only-matching (-o) will print only the part of matching
13 lines that matches the pattern. This is useful, for example, to extract
14 IP addresses from log files.
15
16 - i18n bug fixed ([A-Z0-9] wouldn't match A in locales other than C on
17 systems using recent glibc builds
18
19 - GNU grep can now be built with autoconf 2.52.
20
21 - The new option --devices controls how grep handles device files. Its usage
22 is analogous to --directories.
23
24 - The new option --line-buffered fflush on everyline. There is a noticeable
25 slow down when forcing line buffering.
26
27 - Back references are now local to the regex.
28 grep -e '\(a\)\1' -e '\(b\)\1'
29 The last backref \1 in the second expression refer to \(b\)
30
31 - The new option --include=PATTERN will only search matching files
32 when recursing in directories
33
34 - The new option --exclude=PATTERN will skip matching files when
35 recursing in directories.
36
37 - The new option --color will use the environment variable GREP_COLOR
38 (default is red) to highlight the matching string.
39 --color takes an optional argument specifying when to colorize a line:
40 --color=always, --color=tty, --color=never
41
42 - The following changes are for POSIX.2 conformance:
43
44 . The -q or --quiet or --silent option now causes grep to exit
45 with zero status when a input line is selected, even if an error
46 also occurs.
47
48 . The -s or --no-messages option no longer affects the exit status.
49
50 . Bracket regular expressions like [a-z] are now locale-dependent.
51 For example, many locales sort characters in dictionary order,
52 and in these locales the regular expression [a-d] is not
53 equivalent to [abcd]; it might be equivalent to [aBbCcDd], for
54 example. To obtain the traditional interpretation of bracket
55 expressions, you can use the C locale by setting the LC_ALL
56 environment variable to the value "C".
57
58 - The -C or --context option now requires an argument, partly for
59 consistency, and partly because POSIX.2 recommends against
60 optional arguments.
61
62 - The new -P or --perl-regexp option tells grep to interpert the pattern as
63 a Perl regular expression.
64
65 - The new option --max-count=num makes grep stop reading a file after num
66 matching lines.
67 New option -m; equivalent to --max-count.
68
69 - Translations for bg, ca, da, nb and tr have been added.
70
1Version 2.4.2
2
3 - Added more check in configure to default the grep-${version}/src/regex.c
4 instead of the one in GNU Lib C.
5
6Version 2.4.1
7
8 - If the final byte of an input file is not a newline, grep now silently

--- 160 unchanged lines hidden ---
71Version 2.4.2
72
73 - Added more check in configure to default the grep-${version}/src/regex.c
74 instead of the one in GNU Lib C.
75
76Version 2.4.1
77
78 - If the final byte of an input file is not a newline, grep now silently

--- 160 unchanged lines hidden ---