ant completion broken (fixed in jaunty)

Bug #365664 reported by Nathan Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: zsh

The ant completion (via Completion/Unix/Command/_ant) is broken in intrepid zsh-beta. The problem is an extra space in a sed regex and it's fixed in jaunty zsh-beta:

  $ diff -u zsh-beta-4.3.6-dev-0+20080723/Completion/Unix/Command/_ant zsh-beta-4.3.9-dev-1+20090214/Completion/Unix/Command/_ant
  --- zsh-beta-4.3.6-dev-0+20080723/Completion/Unix/Command/_ant 2008-07-22 22:57:46.000000000 -0400
  +++ zsh-beta-4.3.9-dev-1+20090214/Completion/Unix/Command/_ant 2009-02-14 08:35:37.000000000 -0500
  @@ -1,6 +1,6 @@
   #compdef ant -value-,ANT_ARGS,-default-

  -# Apache Ant version 1.6.5
  +# Apache Ant version 1.7.1

   local curcontext="$curcontext" state line expl ret=1
   typeset -A opt_args
  @@ -10,7 +10,7 @@
       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
  @@ -52,6 +52,8 @@
     '-nice[specify a niceness value for the main thread]:niceness value (default 5):({1..10})' \
     '-nouserlib[run ant without using the jar files from ${user.home}/.ant/lib]' \
     '-noclasspath[run ant without using CLASSPATH]' \
  + '-autoproxy[Java1.5+: use the OS proxy settings]' \
  + "-main[override Ant's normal entry point]:class:->class" \
     $target && ret=0

   case $state in

My system info

  $ lsb_release -rd
  Description: Ubuntu 8.10
  Release: 8.10

  $ apt-cache policy zsh-beta
  zsh-beta:
    Installed: 4.3.6-dev-0+20080723-1ubuntu1
    Candidate: 4.3.6-dev-0+20080723-1ubuntu1
    Version table:
   *** 4.3.6-dev-0+20080723-1ubuntu1 0
          500 http://us.archive.ubuntu.com intrepid/universe Packages
          100 /var/lib/dpkg/status

Please backport. Thanks.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Closing as fixed.

Changed in zsh (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.