3 ms·
> I thought they were api complainant drop-in replacements so it’s not like they fill in a missing role. Could you please let me know how you came to that unde
by burntsushi 6y ago
> I thought they were api complainant drop-in replacements so it’s not like they fill in a missing role.
Could you please let me know how you came to that understanding? Because I'd really like to fix it. ripgrep was never intended to be POSIX compatible. It would have been a straight-jacket over its functionality. See: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#posix4ever https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos...
> As for RG and AG. other than being faster, how are they better?
For ripgrep at least, a lot of it comes down to speed, better output formatting by default and suppressing results you probably don't want by default (but that can be turned off quite easily).
But there are other features, like better Unicode support, built-in support for searching compressed files, support for file types and a few other things. The README includes a bit more. ;-)
- wodenokoto 6y agoHi thanks setting me straight. I have actually read a few of your (great) articles about ripgrep. I hope I didn’t come off as dismissive of your impressive work - though rereading my comment I should perhaps have chosen my wordS a bit more thoughtfully. I did know that RG would skip more files than normal grep, so I guess I knew it’s not a safe replacement for all shell scripts. But other than that, I’ve never thought of AG or RG as tools that brings something new to the table. I’ve always thought of them as a drop ins, with slightly new defaults and much faster speed. And the discussion related to TFA is tools that are missing, not tools that are better. Maybe it’s a mix of the name and countess blog posts telling readers to use RG instead of GREP, that lead me to consider RG as a better grep and not a different tool.
- burntsushi 6y agoInteresting. Hmm. Not quite sure how to combat that one. The issue is that even though ripgrep is not POSIX compatible, it can pretty easily replace grep in most or all circumstances. The similarities between the tools are, for example, much greater than their differences. I know for me at least, I don't ever run grep interactively. The only time I ever use it is in shell scripts.