When a = sign precedes a Zsh $variable expansion, I get the following behavior:
% m=$PATH; echo =$m=
zsh: /usr/local/bin:/usr/sbin:/usr/bin= not found
Quite perplexing. What is happening, and why?
When a = sign precedes a Zsh $variable expansion, I get the following behavior:
% m=$PATH; echo =$m=
zsh: /usr/local/bin:/usr/sbin:/usr/bin= not found
Quite perplexing. What is happening, and why?
Copyright © 2021 Jogjafile Inc.
You've discovered
=filename expansion.Per 14.7.3 ‘=’ expansion from the zsh docs:
To disable this behavior, unset the
EQUALSoption:Here's an example of both behaviors: