Dannymac22 wrote:
iMac was purchased 7/21 (iMac M1 mid-2021). I believe it was delivered with Monterey. That should have been well after acceptance of zsh, so yes, it's unlikely that the default was in delivered firmware. So you're saying that this default is NOT part of the operating system, (which is what I was suggesting), but was just passed on by an earlier installation, most likely as part of individual accounts. This Mac replaced an earlier Mac, and I have to suppose that Migration Assistant was responsible for preserving bash as a default. That seems very odd, that if Apple wants to migrate from bash as a default to zsh as a default it doesn't happen in the operating system itself. That is, Mac is depending on YOU to make the change, rather than them.
Apple used tcsh as the default shell from OS X 10.0 to 10.2 inclusive, switched the default login shell for newly-created logins from tcsh to bash starting with OS X 10.3, and switched new logins from bash to zsh starting with macOS 10.15.
Newly-created logins get whatever was selected at creation, or get the default shell.
Older logins maintain the selected shell across macOS upgrades.
Logins that were migrated from earlier Mac installations will preserve (copy) the shell that the original login was using.
Really old logins will have tcsh, for instance. Unless the user switched the shell somewhere along the way.
So you might well have two Macs running the same macOS version, but different logins can have any of the Apple-provided shells, or any add-on shell.
This approach avoids breaking stuff. Particularly scripts that might not include a shebang, or that might make shell-related assumptions Folks would be unhappy if Apple shifted their login shell as part of a macOS upgrade.