From 4209607a724c607f68dc96c81eb152b85f35f750 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 9 Nov 2022 08:28:55 -0600 Subject: [PATCH] Add test for last char of -f bug. --- tests/grep.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/grep.test b/tests/grep.test index ea125c7a..c7fab92d 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -222,3 +222,5 @@ testcmd '^$' '^\$' '\n' '' 'one\n\ntwo\n' testcmd 'middle ^ not special' 'a^' 'a^b\n' '' 'a^b\nb^a\n' # Quoted to protect it from the shell, grep should just see '$b' testcmd 'middle $ not special' "'\$b'" 'a$b\n' '' 'a$b\nb$a\n' + +testcmd 'grep -of' '-of input' 'abc\n' 'a.c\n' 'abcdef\n' -- 2.39.2