tar: Simplify bzip patterns.

This commit is contained in:
Ville Skyttä 2013-01-12 18:07:52 +02:00
parent 26991e1bf4
commit 9c80d8b521

View File

@ -12,7 +12,7 @@ _tar()
return 0
fi
local tars='@(@(tar|gem|spkg)?(.@(Z|[gx]z|bz?(2)|lzma))|t@([glx]z|bz?(2)))'
local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lzma))|t@([bglx]z|bz2))'
case ${words[1]} in
--*)
@ -35,7 +35,7 @@ _tar()
;;
+([^ZzJjy])f)
ext="$tars"
regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[gx]z\|bz2\?\|lzma\)\)\?\|t\([glx]z\|bz2\?\)\)'
regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[bgx]z\|bz2\|lzma\)\)\?\|t\([bglx]z\|bz2\)\)'
;;
*[Zz]*f)
ext='@(t?(ar.)|gem.|spkg.)@(gz|Z)'