Options --fixed-strings --file FILE can bail out with a pattern syntax error before searching an input file when the string pattern FILE contains an \E sequence somewhere. This happens because \E ends a literal regex quoted string that confuses the pattern matcher engine. It should handle this the same way as --fixed-strings does for command-line argument string patterns where this problem does not occur.
Test case: echo 'test\Ethis' | ugrep -F -f - some_file.txt
Options
--fixed-strings --file FILE
can bail out with a pattern syntax error before searching an input file when the string patternFILE
contains an\E
sequence somewhere. This happens because\E
ends a literal regex quoted string that confuses the pattern matcher engine. It should handle this the same way as--fixed-strings
does for command-line argument string patterns where this problem does not occur.Test case:
echo 'test\Ethis' | ugrep -F -f - some_file.txt