Opened 10 years ago

Last modified 9 years ago

#35319 assigned enhancement

bash-completion: tar completion should suggest all formats supported by libarchive

Reported by: ozaktash@… Owned by: raimue (Rainer Müller)
Priority: Low Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: bash-completion

Description

tar bash completion doesn't work for files with zip extension but tar can successfully work with zip files.

Change History (4)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to raimue@…
Type: requestenhancement

You appear to be correct. I had no idea tar could do that.

comment:2 Changed 10 years ago by raimue (Rainer Müller)

Status: newassigned

The tar completion provided by upstream targets GNU tar, which cannot handle zip files. I guess it would be fine to assume BSD tar on Mac OS X.

comment:3 Changed 10 years ago by raimue (Rainer Müller)

Summary: bash-completion 1.3 for tar should also complete zip filesbash-completion: tar completion should suggest all formats supported by libarchive

Taking a closer look, the tar bash-completion should support all formats supported by libarchive (see both libarchive(3) and libarchive-formats(5)). This includes at least the filename extensions: .tar, .tar.(gz|bz2|xz|lzma|Z), .t(gz|bz2|xz|lz), .zip, .iso, .cpio

comment:4 Changed 9 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.