4 ms·
Better make sure those shell scripts all run in csh/tcsh too. Never know when you'll be running on MacOS 10.1!
by pyre 9y ago
Better make sure those shell scripts all run in csh/tcsh too. Never know when you'll be running on MacOS 10.1!
- stonogo 9y agocsh is still the default root shell on FreeBSD, which is in heavy use in millions of places around the world. There are also a relatively large number of tcsh users in the world. This is why, even now on latest fedora, /etc/profile.d contains csh scripts. As for sh, standards exist for a reason. Try to empathize with people who are not in your bubble.
- shakna 9y agoDash is on all my main servers, but Busybox is on the vendored stuff. That means dash & ash. Portability can matter.
- mort96 9y agothe nice thing about standards is that you don't have to make sure the script runs in a billion different shells. You just have to make sure your code is POSIX compatible, and all of a sudden, all POSIX compatible shells will interpret it just fine! Isn't that fantastic?
- comex 9y agocsh and tcsh are not POSIX compatible.