Hacker News new | ask | show | jobs
by bryanlarsen 510 days ago
It's the userland that always sends me back to Linux. I've tried BSD a few times, but there are enough gnu flags in my muscle memory for command line utilities that it's painful.
1 comments

This is an honest question. Do you have any examples?

I have always been a GNU user but have been using Chimera Linux. I ran into differences with ‘sed’ and read about a regex difference with “find’. Really curious what flags other people are using.

one sticking point for GNU users can be that BSD utils are more strict about positional order of e.g filename parameter and input options. rm ~/foo -rf || rm -rf ~/foo

I was forced to get used to BSD syntax when I switched to MacOS but now I prefer it...

Thank you for the answer!

Even as a GNU user, I never would never have thought to put filenames anywhere but the end. I mean, with wildcards, it could be any number of filenames.

You are right though, that is an important difference.

It’s unnatural to put the flags after the command. But sometimes I remember I’ve to use a flag after I’ve entered the input; other times, I notice a flag’s omission after executing it, and Control + P puts my cursor at the end, after the input.