2

基本的に、これを行うことが可能かどうか疑問に思っています:

#compdef foo
_arguments \
    '--arg=[Description of --arg [With square brackets in the string!]]' \

invalid option error入れ子になった角かっこが原因で取得せずに?

あらゆる種類のエスケープ文字を試しました。一重引用符と二重引用符の違いはありません。

4

1 に答える 1

0

このようにそれらをエスケープしてみてください:

'--arg=\\[Description of --arg \\[With square brackets in the string!\\]\\]'
于 2012-09-28T07:40:42.763 に答える