4 ms·
Note that some of those long arguments don't work on OS X or BSD, so do some tests if you want to be portable.
by unhammer 13y ago
Note that some of those long arguments don't work on OS X or BSD, so do some tests if you want to be portable.
- nonchalance 13y agoTo be fair, with some commands there are flags which do different things in OSX/BSD and in GNU. So you should verify that all arguments, both short and long, do the same thing As an example, `sed -i` is used for in-place editing. BSD/OSX variants expect an extension argument to be provided after the flag, with an empty string for no backup (sed -i '' 's/foo/bar/' foo.bar) On the other hand, gnu expects the backup extension in the flag (like -W in C compilers), so the command is parsed as if 's/foo/bar/' was the file to open