ZSH $ARG_ZERO 不可用

ZSH $ARG_ZERO not available

我正在尝试根据 this 答案使用 $ZSH_ARGZERO。

但是该变量在我的终端(交互式)或脚本中不可用。我假设必须允许 setopt (尽管我可能不正确)。我不知道在我的终端中禁用了它。

我的 zsh --version 是 zsh 5.1.1.

谢谢

$ZSH_ARGZEROintroduced in Zsh 5.3。您将需要升级。