|
|
|
|
|
by oguz-ismail
584 days ago
|
|
It's not compatible with grep though. How do you search for a square bracket? $ 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? |
|