about summary refs log tree commit diff
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
parentf5d9a995f9aed0b6fbd566e59dae598d1eaf7b0f (diff)
downloadzsh-d8e4bb5a383a8566e7ee86466ebe057c45b03201.tar.gz
zsh-d8e4bb5a383a8566e7ee86466ebe057c45b03201.tar.xz
zsh-d8e4bb5a383a8566e7ee86466ebe057c45b03201.zip
Jean-Baptiste Quenot: 20167: find targets enclosed in single quotes
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_ant2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e0e3e2e9..b007fc730 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-19  Oliver Kiddle  <opk@zsh.org>
+
+	* Jean-Baptiste Quenot: 20167: Completion/Unix/Command/_ant:
+	find targets enclosed in single instead of double quotes
+
 2004-07-17  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
 	* 20173: Src/mem.c: crash when globbing lots of files; need to
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