[Bash-completion-devel] Bug#521041: bash-completion: zip files should be completion candidates for jar -f

James Westby jw+debian at jameswestby.net
Tue Mar 24 14:17:03 UTC 2009


Package: bash-completion
Version: 20080705
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu jaunty ubuntu-patch

Hi,

In https://bugs.launchpad.net/bugs/248057 Brett Sealey reported that
bash-completion doesn't offer .zip files for completion with jar -f
when they are valid arguments. He suggested the following patch to fix
that
  
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

Please consider applying the change.

Thanks,

James







More information about the Bash-completion-devel mailing list