News for hackers. Stuff that matters.
Re:Test, [, and [[ (2020) by bgm1975 on Wednesday November 22, 2023 @11:13PM (#38389192)
Apple switched when bash switched from GPL2 to GPL3 which they didn’t like. The older bash is still available.
Re:Test, [, and [[ (2020) by toast0 on Thursday November 23, 2023 @12:27AM (#38389650)
According to the interwebs, zsh became default with Catalina in 2019 [1]; ten years after bash 4 was released with gpl v3 or later.

Also, the interwebs suggest Apple used to use tcsh as the default shell[2]; I don't know when they changed that, but it may have been after bash 4 released? (Thanks, 10.3 was in 2003, so several years before the license changed)

[1] https://www.theverge.com/2019/6/4/18651872/apple-macos-catal...

[2] https://news.ycombinator.com/item?id=18853318

Re:Test, [, and [[ (2020) by masklinn on Thursday November 23, 2023 @12:35AM (#38389698)
bash became the default shell in 10.3. tcsh was the default before then.
Re:Test, [, and [[ (2020) by masklinn on Thursday November 23, 2023 @12:33AM (#38389684)
> Apple switched when bash switched from GPL2 to GPL3

Apple just didn’t update. It took them years to finally switch to switch to zsh.

> The older bash is still available.

Aside from it being bash (a great reason not to use it as far as I’m concerned) it’s now a 17 years old version of bash.

Re:Test, [, and [[ (2020) by toast0 on Thursday November 23, 2023 @12:44AM (#38389739)
> Aside from it being bash (a great reason not to use it as far as I’m concerned) it’s now a 17 years old version of bash.

I thought people liked macOs for its vintage feel? Remember a time when computers could only render a single menu bar in a fixed location, feel the experience of SYN floods, run a version of bash that is old enough to vote in the next presidential election.

Re:Test, [, and [[ (2020) by mkesper on Thursday November 23, 2023 @03:06AM (#38390552)
Honestly this is such a waste of time every time I have to argue with developers about installing up to date homebrew (or whatever) versions of the coreutils that I wish Apple would simply DELETE all these ancient versions of tools from MacOS. As a bonus, homebrew does not offer --with-default-names any more and some tools (like make) are posted into different paths so you need to add your own symlinks or add multiple paths to your PATH.