zsh完成函数参数说明中的方括号,可能吗?
基本上,我想知道是否有可能做到这一点:zsh完成函数参数说明中的方括号,可能吗?,zsh,zsh-completion,Zsh,Zsh Completion,基本上,我想知道是否有可能做到这一点: #compdef foo _arguments \ '--arg=[Description of --arg [With square brackets in the string!]]' \ 由于嵌套的方括号,未获得无效选项错误 我试过各种各样的逃避角色。单引号和双引号没有区别。试着像这样转义它们: '--arg=\\[Description of --arg \\[With square brackets in the string!\\]\
#compdef foo
_arguments \
'--arg=[Description of --arg [With square brackets in the string!]]' \
由于嵌套的方括号,未获得无效选项错误
我试过各种各样的逃避角色。单引号和双引号没有区别。试着像这样转义它们:
'--arg=\\[Description of --arg \\[With square brackets in the string!\\]\\]'
试着像这样逃离他们:
'--arg=\\[Description of --arg \\[With square brackets in the string!\\]\\]'