about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_ant2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d62d2fe62..7da6d589d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-08-31  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 25569: David Le Bourgeouis & pws: _ant completion was broken
+	by sed pattern change.
+
 	* 25568: Frank Terbeck & pws: Src/builtin.c, Test/.distfiles,
 	Test/A07control.ztst: break and continue arguments less than
 	1 are invalid (and hard errors); add some tests for control
diff --git a/Completion/Unix/Command/_ant b/Completion/Unix/Command/_ant
index 90f2f5699..e4f5efa67 100644
--- a/Completion/Unix/Command/_ant
+++ b/Completion/Unix/Command/_ant
@@ -10,7 +10,7 @@ find_targets() {
     importedfiles=( $(sed -n "s/ *<import[^>]* file=[\"']\([^\"']*\)[\"'].*/\1/p" < $1) )
     # Tweaked to omit targets beginning with "-" that can't
     # be invoked from the command line; see zsh-workers/24129.
-    sed -n "s/ *<target[^>]*  name=[\"']\([^-][^\"']*\)[\"'].*/\1/p" $1
+    sed -n "s/ *<target[^>]* name=[\"']\([^-][^\"']*\)[\"'].*/\1/p" $1
     if (( $#importedfiles )) ; then
 	( cd $1:h
     	for file in $importedfiles ; do