summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2009-12-14 12:37:53 +0100
committerPaolo Bonzini <bonzini@gnu.org>2009-12-22 12:26:42 +0100
commit62b155de28da2bf54ee63eb56d8cde42f21f179d (patch)
tree4cedac6ab3cab48da2d98661438e5ac6d71f84a4 /NEWS
parentab21b6037ec92eea32c3cf57220f3b2e567d784d (diff)
downloadgrep-62b155de28da2bf54ee63eb56d8cde42f21f179d.tar.gz
Make 'grep -1 -2' and 'grep -1v2' equivalent to grep -2
Fixes bug 12128. * src/grep.c (get_nondigit_option): Reset the buffer every time a non-digit option is found or a new argument is started.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 70a6cd4e..2a67a320 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ GNU grep NEWS -*- outline -*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+ - A command line like -1 -2 or -1 -v -2 result in two lines of
+ context (the last value that appears on the command line) instead
+ twelve (the concatenation of all the values). This is consistent
+ with the behavior of options -A/-B/-C.
* Noteworthy changes in release 2.5.4 (2009-02-10) [stable]