Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They come from BSD (and, nitpick, are not called coreutils). These BSD tools lack features mostly only if you're used to GNU coreutils.

The expanse of GNU coreutils features is questionable too: some are nice, some you can do without easily and rarely to never miss, and some are downright annoying (yes I'm looking at you, ls with colors+quotes)



Obviously everything is preference, but I prefer things like expanded regex in gnu grep to the underpowered macOS utils


GNU and BSD grep both default to "basic" regular expressions and both have the `-E` switch to use "extended" expressions.


Last time I used macOS (which was 6 years ago) there was no extended expressions, or the regex syntax was limited. I forget (again, haven't used an apple product in years)


It's not necessary to install a suite of commands if you want updated grep.

Just use Homebrew and you can install different versions of grep, including GNU's:

    brew install grep


Sure but with this you get all the other improved core utils like sed, etc. GNU utils just blow BSD/macOS out of the water. Personally, macOS seems to me like a half baked development platform in general


Some of us don't want all of GNU's utilities; just on an as-needed basis. They're not as needed as they once were.

Many of these utilities have been rewritten in Rust and have more modern features and are faster.

For example, instead of ls, I use exa [1]. Or ripgrep [2] instead of grep. sd [3] instead of sed.

[1]: https://github.com/ogham/exa

[2]: https://github.com/BurntSushi/ripgrep

[3]: https://github.com/chmln/sd




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: