tar: Simplify bzip patterns.
This commit is contained in:
parent
26991e1bf4
commit
9c80d8b521
@ -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)'
|
||||
|
Loading…
x
Reference in New Issue
Block a user