Hacker News new | ask | show | jobs
by nerflad 511 days ago
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...

1 comments

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.