4 ms·
What POSIX systems in actual use (not historical Unixes) don't have the long options? macOS' BSD utilities I guess?
by pcwalton 2y ago
What POSIX systems in actual use (not historical Unixes) don't have the long options? macOS' BSD utilities I guess?
- saagarjha 2y agoYes or like BusyBox
- schneems 2y agoYou can also brew install tools like gnused which have the same arguments. Not a viable option for all situations but if you just need to execute it on Linux and your local machine for dev you can use those.
- yjftsjthsd-h 2y ago> What POSIX systems in actual use (not historical Unixes) don't have the long options? All of them except for GNU, AFAICT? (That is, only GNU seems to have long options.) Checking manpages for rm(1) as a simple reference, I can't see long options in any of the 3 major BSDs or illumos, and checking Alpine Linux seems to show busybox also only doing short options (sorry, can't find an online doc for this, though it's easy to check in docker if you don't have a machine running Alpine handy). OpenWRT also uses busybox and has the same (lack of) options. https://man.netbsd.org/rm.1 https://man.netbsd.org/rm.1 https://man.openbsd.org/rm.1 https://man.openbsd.org/rm.1 https://man.freebsd.org/cgi/man.cgi?query=rm&apropos=0&sektion=1&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html https://man.freebsd.org/cgi/man.cgi?query=rm&apropos=0&sekti... https://illumos.org/man/1/rm https://illumos.org/man/1/rm
- SoftTalker 2y agoMore than this, the gnu utilities often have options that don't exist at all on other platforms, in either long or short form.
- deleted 2y ago[deleted]