this post was submitted on 13 Mar 2024
53 points (81.9% liked)

Apple

17450 readers
85 users here now

Welcome

to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!

Rules:
  1. No NSFW Content
  2. No Hate Speech or Personal Attacks
  3. No Ads / Spamming
    Self promotion is only allowed in the pinned monthly thread

Lemmy Code of Conduct

Communities of Interest:

Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple

Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode

Community banner courtesy of u/Antsomnia.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 7 months ago (3 children)

Why did they replace bash with zsh?

[–] [email protected] 5 points 7 months ago (1 children)

The bash that comes with macOS is a fork of the last version distributed under version 2 of the GPL, most likely because Apple doesn’t want to distribute GPLv3 code as part of macOS, and it is ancient. They keep it updated with security fixes but nothing else, so it has gradually become less and less compatible with current bash.

Since zsh has become a popular bash replacement and it isn’t GPLv3, they switched the default shell to that.

[–] [email protected] 2 points 7 months ago

Thanks for the insight!

[–] [email protected] 4 points 7 months ago (1 children)

Bash binary is still included in MacOS, right? It's just the default terminal shell changed to zsh.

[–] [email protected] 1 points 7 months ago

Yes, just checked)

[–] [email protected] 2 points 7 months ago

Not sure either, and kali did the same. https://apple.stackexchange.com/questions/361870/what-are-the-practical-differences-between-bash-and-zsh

Of course, someone posted on stackexchange a nicely detailed post.