zsh
A Unix shell that is compatible with bash and offers more powerful interactive features and scripting capabilities. It is the default shell on macOS.
Timeline (last 90 days)
Sorcerer obtains and caches the user's PATH by launching an interactive login shell (zsh -ilc), with a 5-second timeout to prevent the shell from hanging.
The blogger and a friend audited all the tool calls the Agent executed on the local machine and found that the bash commands Claude wrote for the zsh environment were often incompatible, resulting in a relatively high error rate.
On macOS since 10.15, the HUP option of the default login shell zsh is on by default, sending SIGHUP to running jobs when the shell exits.
The macOS built-in terminal has used zsh as the default shell environment since macOS Catalina (10.15), having previously defaulted to bash.
All Facts (5)
macOS默认Shell为zsh
60%UnverifiedSorcerer obtains and caches the user's PATH by launching an interactive login shell (zsh -ilc), with a 5-second timeout to prevent the shell from hanging.
50%UnverifiedThe blogger and a friend audited all the tool calls the Agent executed on the local machine and found that the bash commands Claude wrote for the zsh environment were often incompatible, resulting in a relatively high error rate.
50%UnverifiedOn macOS since 10.15, the HUP option of the default login shell zsh is on by default, sending SIGHUP to running jobs when the shell exits.
50%UnverifiedThe macOS built-in terminal has used zsh as the default shell environment since macOS Catalina (10.15), having previously defaulted to bash.
50%