[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-34-g0ae464e

Ville Skyttä ville.skytta at iki.fi
Sun Mar 20 16:24:54 UTC 2011


The following commit has been merged in the master branch:
commit 87227ceccdc0aeb9db1d2dd6a1d7afddb635b690
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Mar 20 17:21:02 2011 +0200

    Don't lose J if present in original tar command when finding out how to untar.

diff --git a/completions/tar b/completions/tar
index 8ef4aa6..f6592c9 100644
--- a/completions/tar
+++ b/completions/tar
@@ -46,7 +46,7 @@ _tar()
         # get name of tar file from command line
         tar=$( sed -e 's/^.* \([^ ]*'$regex'\) .*$/\1/' <<<"$COMP_LINE" )
         # devise how to untar and list it
-        untar=t${COMP_WORDS[1]//[^Izjyf]/}
+        untar=t${COMP_WORDS[1]//[^IJzjyf]/}
 
         local IFS=$'\n'
         COMPREPLY=( $( compgen -W "$( printf '%s\n' $( tar $untar $tar \

-- 
bash-completion



More information about the Bash-completion-commits mailing list