【发布时间】:2012-09-21 00:48:05
【问题描述】:
基本上,我想知道是否可以这样做:
#compdef foo
_arguments \
'--arg=[Description of --arg [With square brackets in the string!]]' \
由于嵌套的方括号而没有得到invalid option error?
我尝试了各种转义字符。单引号和双引号没有区别。
【问题讨论】:
标签: zsh zsh-completion
基本上,我想知道是否可以这样做:
#compdef foo
_arguments \
'--arg=[Description of --arg [With square brackets in the string!]]' \
由于嵌套的方括号而没有得到invalid option error?
我尝试了各种转义字符。单引号和双引号没有区别。
【问题讨论】:
标签: zsh zsh-completion
尝试像这样逃避它们:
'--arg=\\[Description of --arg \\[With square brackets in the string!\\]\\]'
【讨论】: