zip files should be completion candidates for jar.

Bug #248057 reported by Brett Sealey
4
Affects Status Importance Assigned to Milestone
bash-completion (Debian)
Fix Released
Unknown
bash-completion (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: bash-completion

The jar utility works with zip files, so they should be candidates for completion.

Ubuntu 8.04.1

Here is a patch against 20060301-3ubuntu3 that enables it:

 diff -u bash_completion.orig bash_completion
--- bash_completion.orig 2008-04-15 02:45:23.000000000 +0100
+++ bash_completion 2008-07-13 10:13:30.000000000 +0100
@@ -2985,7 +2985,7 @@
    _filedir
    ;;
   *f)
- _filedir '?(e|j|w)ar'
+ _filedir '?([ejw]ar|zip|[EJW]AR|ZIP)'
    ;;
   *)
    _filedir

Revision history for this message
YoBoY (yoboy-leguesh) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you.

I have tried to reproduce it in my 8.10 Intrepid Ibex and i can't.

My test case:
$ touch test.zip
$ touch test.jar
$ jar t test.[TAB]
test.jar test.zip # the 2 files are proposed like expected.

I have also edited my /etc/bash_completion file to see what i have in the _jar spécifications and i can't see difference with the last hardy version.

I mark this bug as invalid for now beacause i can't reproduce it and the auto completion work like expected in the latest ubuntu version. Feel free to provide us more information (like your java virtual machine, java path, ...) to help us figure why you have this issue, and change back the status to incomplete.

Changed in bash-completion:
status: New → Invalid
Revision history for this message
YoBoY (yoboy-leguesh) wrote :

Sorry, i miss some details when i make my first tests.

USE CASE : "jar -f FILENAME"
$ touch test.zip #should be proposed
$ touch test.jar #should be proposed
$ touch test.txt #shouldn't be proposed
$ jar -f test.[TAB]
test.jar # Only the .jar file is proposed.

RESULT EXPECTED
test.jar test.zip

Your patch should work, but there is another problem i go to describe on another bug.

Tanks

Changed in bash-completion:
status: Invalid → Confirmed
Revision history for this message
Brett Sealey (bretts) wrote : Re: [Bug 248057] Re: zip files should be completion candidates for jar.

Hi, thanks for picking up on this. Glad you were able to reproduce the
bug. Let me know if there is anything else I can help you with.

Brett

On 22 Mar 2009, at 10:56, YoBoY <email address hidden> wrote:

> Sorry, i miss some details when i make my first tests.
>
> USE CASE : "jar -f FILENAME"
> $ touch test.zip #should be proposed
> $ touch test.jar #should be proposed
> $ touch test.txt #shouldn't be proposed
> $ jar -f test.[TAB]
> test.jar # Only the .jar file is proposed.
>
> RESULT EXPECTED
> test.jar test.zip
>
> Your patch should work, but there is another problem i go to
> describe on
> another bug.
>
> Tanks
>
> ** Changed in: bash-completion (Ubuntu)
> Status: Invalid => Confirmed
>
> --
> zip files should be completion candidates for jar.
> https://bugs.launchpad.net/bugs/248057
> You received this bug notification because you are a direct subscriber
> of the bug.

James Westby (james-w)
Changed in bash-completion (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in bash-completion 1:1.0-1, now in karmic:

    - added .zip to jar completions (Closes: #521041)

Changed in bash-completion (Ubuntu):
status: Triaged → Fix Released
Changed in bash-completion (Debian):
status: Unknown → 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.