1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

22588: handle targets with colons in their names.

This commit is contained in:
Clint Adams 2006-08-07 03:25:31 +00:00
parent f5f90da9c0
commit 37f43513c5
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
2006-08-06 Clint Adams <clint@zsh.org>
* 22588: Completion/Unix/Command/_rake: handle targets
with colons in their names.
2006-08-04 Peter Stephenson <pws@csr.com>
* 22587: INSTALL, MACHINES, NEWS< README: update notes on

@ -31,7 +31,7 @@ case "$state" in
;;
target)
local -a targets
targets=( ${${(f)"$(_call_program targets $words[1] -sT $opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 2>/dev/null)"}/(#b)rake ([^ ]##) ##\# (*)/$match[1]:${match[2]:l}} )
targets=( ${${(f)"$(_call_program targets $words[1] -sT $opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 2>/dev/null)"}/(#b)rake ([^ ]##) ##\# (*)/${${match[1]}//:/\\:}:${match[2]:l}} )
if (( ! ${targets[(I)rake aborted!]} )) then
_describe -t targets 'rake target' targets && ret=0
else