mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 12:11:26 +01:00
23182: _arguments problem with --with-foo[=BAR] specifiers
This commit is contained in:
parent
1f4fa4c02d
commit
9d43d061e1
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-02-16 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23182: Completion/Base/Utility/_arguments: handle
|
||||
./configure --help output "--with-foo[=BAR]" by
|
||||
using "=-" specifier.
|
||||
|
||||
2007-02-14 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 23178: David Riebenbauer: Completion/Debian/Command/_make-kpkg:
|
||||
|
|
|
@ -217,7 +217,11 @@ if (( long )); then
|
|||
else
|
||||
odescr=
|
||||
fi
|
||||
opt2=${${opt%%\[\=*}//[^a-zA-Z0-9-]}=${dir}${odescr}
|
||||
if [[ $opt = (#b)(*)\[\=* ]]; then
|
||||
opt2=${${match[1]}//[^a-zA-Z0-9-]}=-${dir}${odescr}
|
||||
else
|
||||
opt2=${${opt}//[^a-zA-Z0-9-]}=${dir}${odescr}
|
||||
fi
|
||||
if [[ "$descr" = :\=* ]]; then
|
||||
cache+=( "${opt2}::${(L)${opt%\]}#*\=}: " )
|
||||
elif [[ "$descr" = ::* ]]; then
|
||||
|
|
Loading…
Reference in a new issue