My default shell is zsh (/bin/zsh
). When I first open a terminal session, brace expansion for characters does not work, while numeric expansion works fine. Running zsh
to open a new shell fixes the problem:
$ zsh --version
zsh 5.0.8 (x86_64-apple-darwin14.3.0)
$ echo {0..9}
0 1 2 3 4 5 6 7 8 9
$ echo {a..z}
{a..z}
$ zsh
$ echo {a..z}
a b c d e f g h i j k l m n o p q r s t u v w x y z
$ zsh --version
zsh 5.0.8 (x86_64-apple-darwin14.3.0)
This occurs in both Terminal and iTerm, and is not due to any settings in .zshrc
(it is unchanged in the absence of that file). The zsh version is the same in both cases, and is greater than 5.0.7, so this is not explained by this related question. I presume it's somehow related to the difference between a login/non-login shell, but I have no idea why it would do this.
Why isn't zsh performing brace expansion here?