by TheGrassyKnoll · 2y ago · 0 comments
$ grep '[][]' </dev/null
$ rg '[][]' </dev/null
rg: regex parse error:
(?:[][])
^^
error: unclosed character class
$
And why does it search the current directory when its input is redirected from /dev/null? What other surprises are there?