[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-43-gf321357

Ville Skyttä ville.skytta at iki.fi
Mon Sep 24 20:12:46 UTC 2012


The following commit has been merged in the master branch:
commit f32135799155cbde9237567a5a3a811172adf341
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Sep 24 23:09:34 2012 +0300

    tar: Don't take -I to mean bzip2.
    
    It hasn't meant bzip2 since GNU tar 1.13.18 (2000) and means something
    different since 1.22 (2009).

diff --git a/completions/tar b/completions/tar
index a18fb78..7bb19df 100644
--- a/completions/tar
+++ b/completions/tar
@@ -33,7 +33,7 @@ _tar()
             fi
             return 0
             ;;
-        +([^IZzJjy])f)
+        +([^ZzJjy])f)
             ext="$tars"
             regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[gx]z\|bz2\?\|lzma\)\)\?\|t\([glx]z\|bz2\?\)\)'
             ;;
@@ -41,7 +41,7 @@ _tar()
             ext='@(t?(ar.)|gem.|spkg.)@(gz|Z)'
             regex='\(t\(ar\.\)\?\|gem\.\|spkg\.\)\(gz\|Z\)'
             ;;
-        *[Ijy]*f)
+        *[jy]*f)
             ext='@(@(t?(ar.)|gem.)bz?(2)|spkg)'
             regex='\(\(t\(ar\.\)\?\|gem\.\)bz2\?\|spkg\)'
             ;;
@@ -62,7 +62,7 @@ _tar()
             # get name of tar file from command line
             tar=$( sed -e 's/^.* \([^ ]*'$regex'\) .*$/\1/' <<<"${words[@]}" )
             # devise how to untar and list it
-            untar=t${words[1]//[^IJzjyf]/}
+            untar=t${words[1]//[^Jzjyf]/}
 
             local IFS=$'\n'
             COMPREPLY=( $( compgen -W "$( printf '%s\n' $( tar $untar $tar \

-- 
bash-completion



More information about the Bash-completion-commits mailing list