1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

25569: David Le Bourgeois and pws: _ant completion fix

This commit is contained in:
Peter Stephenson 2008-08-31 13:37:27 +00:00
parent 50e4b43362
commit f18f231ef7
2 changed files with 4 additions and 1 deletions

View file

@ -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