summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-07-19 16:30:54 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-07-19 16:30:54 +0000
commitd8e4bb5a383a8566e7ee86466ebe057c45b03201 (patch)
treef7ddadfedb0d2ec0a1334bb08fe6d41cc460e8dc /Completion/Unix
parentf5d9a995f9aed0b6fbd566e59dae598d1eaf7b0f (diff)
downloadzsh-d8e4bb5a383a8566e7ee86466ebe057c45b03201.tar.gz
zsh-d8e4bb5a383a8566e7ee86466ebe057c45b03201.tar.xz
zsh-d8e4bb5a383a8566e7ee86466ebe057c45b03201.zip
Jean-Baptiste Quenot: 20167: find targets enclosed in single quotes
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_ant2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_ant b/Completion/Unix/Command/_ant
index 88c1f3ef4..f969ad859 100644
--- a/Completion/Unix/Command/_ant
+++ b/Completion/Unix/Command/_ant
@@ -86,7 +86,7 @@ case $state in
 	buildfile=${(v)opt_args[(I)(-f|-file|-buildfile)]:-build.xml}
       fi
       if [[ -f $buildfile ]]; then
-	targets=( $(sed -n 's/ *<target name="\([^"]*\)".*/\1/p' < $buildfile) )
+        targets=( $(sed -n "s/ *<target name=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) )
 	_wanted targets expl target compadd -a targets && ret=0
       else
 	_message -e targets target