Browse Source

Add test for last char of -f bug.

Rob Landley 1 year ago
parent
commit
4209607a72
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/grep.test

+ 2 - 0
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'