Date: 2008-02-19 Initial Package Version: 2.5.3 Upstream Status: from upstream, with one slight change to expected test result. Origin: from upstream. Description: Various fixes, particularly for man and info pages, add a new test to foad1 (expected results have 'standard input' label added to match the result with the debian fixes) and commenting out the (new) tests which are expected to fail. diff -Naur grep-2.5.3.with-deb-patches/doc/grep.1 grep-2.5.3.lfs/doc/grep.1 --- grep-2.5.3.with-deb-patches/doc/grep.1 2006-08-18 23:00:31.000000000 +0100 +++ grep-2.5.3.lfs/doc/grep.1 2008-02-10 18:59:10.000000000 +0000 @@ -21,7 +21,7 @@ . \" ISO 8601 date, complete format, extended representation . ds Dt \\*(Yr-\\*(Mn-\\*(Dy .. -.Id $Id: grep.1,v 1.38 2006/08/18 22:00:31 bero Exp $ +.Id $Id: grep.1,v 1.39 2008/02/07 03:43:27 taa Exp $ .TH GREP 1 \*(Dt "GNU grep 2.5.1-cvs" "User Commands" .hy 0 . @@ -125,7 +125,8 @@ Use .I PATTERN as the pattern. -This is useful to protect patterns beginning with hyphen-minus +This can be used to specify multiple search patterns, +or to protect a pattern beginning with a hyphen .RB ( \- ). .RB ( \-e is specified by \s-1POSIX\s0.) diff -Naur grep-2.5.3.with-deb-patches/doc/grep.texi grep-2.5.3.lfs/doc/grep.texi --- grep-2.5.3.with-deb-patches/doc/grep.texi 2006-08-18 23:00:31.000000000 +0100 +++ grep-2.5.3.lfs/doc/grep.texi 2008-02-10 18:59:10.000000000 +0000 @@ -211,8 +211,9 @@ @opindex -e @opindex --regexp=@var{pattern} @cindex pattern list -Use @var{pattern} as the pattern; -useful to protect patterns beginning with a @samp{-}. +Use @var{pattern} as the pattern. +This can be used to specify multiple search patterns, +or to protect a pattern beginning with a @samp{-}. (@samp{-e} is specified by @sc{posix}.) @item -f @var{file} diff -Naur grep-2.5.3.with-deb-patches/tests/foad1.sh grep-2.5.3.lfs/tests/foad1.sh --- grep-2.5.3.with-deb-patches/tests/foad1.sh 2005-11-18 20:02:22.000000000 +0000 +++ grep-2.5.3.lfs/tests/foad1.sh 2008-02-10 19:01:06.000000000 +0000 @@ -34,9 +34,10 @@ # Test "--only-matching" ("-o") option # "-o" with "-i" should output an exact copy of the matching input text. -grep_test "WordA/wordB/WORDC/" "Word/word/WORD/" "Word" -o -i grep_test "WordA/wordB/WORDC/" "Word/word/WORD/" "word" -o -i -grep_test "WordA/wordB/WORDC/" "Word/word/WORD/" "WORD" -o -i +# Comment out cases that are known to fail. These should be uncommented after the 2.5.4 release. TAA. +#grep_test "WordA/wordB/WORDC/" "Word/word/WORD/" "Word" -o -i +#grep_test "WordA/wordB/WORDC/" "Word/word/WORD/" "WORD" -o -i # Should display the line number (-n), octet offset (-b), or file name # (-H) of every match, not just of the first match on each input line. @@ -55,6 +56,13 @@ grep_test "wA wB/" "(standard input):wA/(standard input):wB/" "w." -o -H -i grep_test "wA wB/" "(standard input):wA/(standard input):wB/" "w." -o -H -3 2>/dev/null +# Combination of -h and -H +grep_test "wA wB/" "wA wB/" "w." +grep_test "wA wB/" "wA wB/" "w." -h +grep_test "wA wB/" "(standard input):wA wB/" "w." -H -h +grep_test "wA wB/" "(standard input):wA wB/" "w." -H +grep_test "wA wB/" "(standard input):wA wB/" "w." -h -H + # End of a previous match should not match a "start of ..." expression. grep_test "word_word/" "word_/" "^word_*" -o grep_test "wordword/" "word/" "\