[Bash-completion-devel] [bash-completion-Bugs][311613] tar completion with xz

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Wed Apr 22 12:55:29 UTC 2009


Bugs item #311613, was opened at 2009-04-22 12:55 by Eric Blake
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311613&group_id=100114

Status: Open
Priority: 3
Submitted By: Eric Blake (eblake-guest)
Assigned to: Nobody (None)
Summary: tar completion with xz 
Distribution: --Distribution-Agnostic--
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
I noticed that tar completion in 1.0 finally supports lzma files.  However, tar 1.22 changed -J from lzma over to xz (xz is the replacement for lzma, which understands the obsolete .lzma file format but also the new .xz file format).

This part of _tar:

        *[J]*f)
            ext='t?(ar.)lz?(ma)';
            regex='t\(ar\.\)\?lzma\?'

should probably be rewritten:

        *[J]*f)
            ext='t?(ar.)[lx]z?(ma)';
            regex='t\(ar\.\)\?[xl]z\(ma\?\)?'



----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311613&group_id=100114



More information about the Bash-completion-devel mailing list