Re:FreeBSD switches the default root shell from csh to sh
by jdboyd on Wednesday October 20, 2021 @11:10AM
(#28931585)
I've been trying to stick with bash for at least 20 years (I did have a brief tcsh phase before that) since a time when sticking with it meant having to install it on every unix system I touched. However, now that MacOS defaults to zsh, I'm starting to wonder if I should summon up the effort to change again.
[ Parent
| on HN ]
Re:FreeBSD switches the default root shell from csh to sh
by jolmg on Wednesday October 20, 2021 @11:19AM
(#28931734)
I think the most noticeable difference is that `$foo` doesn't word-split unless you do `${=foo}`. Beyond that, I don't think one would notice they were using zsh instead of bash. In most ways, zsh is pretty much a superset of bash.
Re:FreeBSD switches the default root shell from csh to sh
by dekhn on Wednesday October 20, 2021 @11:27AM
(#28931877)
personally, I don't have interest in zsh because bash is the default shell in Linux, which is the UNIX system I use (I find mac's unix to be really a weird variant). Mac switching to zsh is just more evidence they're diverting from the mainstream.
Re:FreeBSD switches the default root shell from csh to sh
by handrous on Wednesday October 20, 2021 @11:47AM
(#28932144)
> I find mac's unix to be really a weird variant
It's closer to BSD than it is to Linux. Not super similar, but closer, especially in ways one tends to notice on the command line.
Re:FreeBSD switches the default root shell from csh to sh
by tomc1985 on Wednesday October 20, 2021 @12:12PM
(#28932464)
It still sticks pretty close to BSD. I am seeing a ton of (entirely natural) similarity since I started seriously playing with FreeBSD
Re:FreeBSD switches the default root shell from csh to sh
by dekhn on Wednesday October 20, 2021 @01:08PM
(#28933155)
you're right, Mac OS X is a derivative of BSD but it also has significant Mach tech (like the linker).
I've used freebsd for years and I still find Mac OS to be the least useful UNIX.
Re:FreeBSD switches the default root shell from csh to sh
by smhenderson on Wednesday October 20, 2021 @05:52PM
(#28937244)
Ironic it's one of the few (only?) popular, widely deployed ones left that gets to sport the fact it's a certified Unix OS - https://www.opengroup.org/openbrand/register/
Re:FreeBSD switches the default root shell from csh to sh
by dekhn on Wednesday October 20, 2021 @06:11PM
(#28937456)
Sort of. I see this a different way. Many years ago, Linux replaced UNIX as the "standard UNIX", and certification become irrelevant.
Further, unless I'm missing an important technical detail, Linux could, with some effort, pass the certification process.
Re:FreeBSD switches the default root shell from csh to sh
by mprovost on Wednesday October 20, 2021 @11:47AM
(#28932148)
Apple switched to zsh because newer versions of bash are licensed under GPLv3.
Re:FreeBSD switches the default root shell from csh to sh
by dekhn on Wednesday October 20, 2021 @02:02PM
(#28933820)
I know what the reason is. I don't care. I use GPLv3 and have no interest in an OS that doesn't. You can run bash on windows or compile it yourself on any platform. microsoft even distributes it with windows.
Re:FreeBSD switches the default root shell from csh to sh
by Firehawke on Wednesday October 20, 2021 @05:16PM
(#28936755)
Not strictly correct. It's provided by whatever WSL distro you download, and that download comes from the distro as opposed to Microsoft.
Re:FreeBSD switches the default root shell from csh to sh
by nonamenoslogan on Wednesday October 20, 2021 @06:34PM
(#28937699)
Compile it yourself on MacOS, problem solved. Or install it with Homebrew?
Re:FreeBSD switches the default root shell from csh to sh
by saghm on Wednesday October 20, 2021 @11:56AM
(#28932265)
IIRC, MacOS had to ship with a fairly old version of bash by default because newer versions have a more copyleft license; I always assumed that their swap to zsh was because they wanted something both up to date and compatible in terms of the license (and the fact that most bash "just works" when you run it in zsh is a plus).