[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0b6baead5c270c362db3c84eb25fb46b5285827f

Ville Skyttä ville.skytta at iki.fi
Mon Jan 18 18:33:07 UTC 2010


The following commit has been merged in the master branch:
commit 0b6baead5c270c362db3c84eb25fb46b5285827f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Jan 18 20:32:03 2010 +0200

    Parse pigz options from pigz, not gzip, option completion improvements.

diff --git a/CHANGES b/CHANGES
index 3208b5b..b471fd5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -25,9 +25,9 @@ bash-completion (2.x)
   * Apply cardctl completion to pccardctl too.
   * Apply pine completion to alpine too.
   * Remove many unnecessary short option completions where long ones exist.
-  * Improve chsh, configure, cvs, gkrellm, lftp, look, mdadm, modprobe, mplayer,
-    mysqladmin, rsync, screen, service, scp, ssh, sshfs, update-alternatives,
-    vncviewer, yp-tools, and general hostname completions.
+  * Improve chsh, configure, cvs, gkrellm, gzip, lftp, look, mdadm, modprobe,
+    mplayer, mysqladmin, rsync, screen, service, scp, ssh, sshfs,
+    update-alternatives, vncviewer, yp-tools, and general hostname completions.
   * Add abook and wtf completion, based on work by Raphaël Droz.
   * Add cvsps, dragon, fusermount, jarsigner, k3b, lftpget, pm-utils, rtcwake,
     pack200, unpack200, pbzip2, pbunzip2, pbzcat, pigz and unpigz completions.
diff --git a/contrib/gzip b/contrib/gzip
index 94f8c9d..0824385 100644
--- a/contrib/gzip
+++ b/contrib/gzip
@@ -8,10 +8,17 @@ _gzip()
     COMPREPLY=()
     cur=`_get_cword`
     prev=${COMP_WORDS[COMP_CWORD-1]}
-    helpopts=`_parse_help gzip`
+    helpopts=`_parse_help ${COMP_WORDS[0]}`
+
+    case $prev in
+        -b|--blocksize|-p|--processes|-S|--suffix|-h|--help|-V|--version)
+            return 0
+            ;;
+    esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W "$helpopts -2 -3 -4 -5 -6 -7 -8" -- "$cur" ) )
+        COMPREPLY=( $( compgen -W "$helpopts -1 -2 -3 -4 -5 -6 -7 -8 -9" \
+            -- "$cur" ) )
         return 0
     fi
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list