3 ms·
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 -
by nerflad 2y 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...
- LeFantome 2y agoThank 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.
- syene 2y agoIt’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.