[patch] testsuite/grep.tests: fixes 'grep (no newline at EOL)' test

Denys Vlasenko vda.linux at googlemail.com
Fri May 2 05:33:09 PDT 2008


On Friday 02 May 2008 14:11, Cristian Ionescu-Idbohrn wrote:
> Both busybox and gnu grep output a new line character after the located
> string:
> 
>   # grep bug input
> 
> even if there is no new line character after the 'bug' string in the input
> file.

I added this text as a comment in testsuite:

# GNU grep (version?) outputs a new line character after the located string
# even if there is no new line character in the input
testing "grep (no newline at EOL)" "grep bug input" "bug\n" "bug" ""

Which version of grep?

Applied, thanks!
--
vda


More information about the busybox mailing list