ports/shells/zsh/files/extra-patch-bsdtar
Sergei Kolobov 4af6572b3c - Stop adding rzsh (restricted zsh) to /etc/shells [1]:
rzsh(1) is the restricted version of zsh(1), with various things disabled
  so as to provide a strictly limited access to the system.
  A user with a shell in /etc/shells can use chsh(1) to change their shell,
  can use FTP, can use other file-transfer services, etc. Thus, adding rzsh
  to /etc/shells could be a security risk in certain configurations.
- zsh-mime-setup is set up to look for /etc/{mime.types,mailcap}.
  Neither of them should exist on a stock FreeBSD system.
  Teach it to look in ${LOCALBASE}/etc instead. [2]
- Zsh completion doesn't know about bsdtar(1) achievements:
  it won't complete to foo.tar.gz if you just enter 'tar xf foo^D'.
  Teach zsh completion about this and other formats supported by bsdtar(1).
  NOTE: This is only applicable to FreeBSD 5.3-RELEASE or newer,
  where bsdtar(1) replaced GNU tar(1) in the base system.
- Bump PORTREVISION

PR:		ports/82066 [2], ports/83023 [3]
Submitted by:	Phil Pennock <pdp@nl.demon.net> [1]
		Ulrich Spoerlein <q@galgenberg.net> [2] [3]
2005-09-06 12:53:34 +00:00

18 lines
621 B
Text

--- Completion/Unix/Type/_tar_archive Mon Jul 4 17:16:10 2005
+++ Completion/Unix/Type/_tar_archive Tue Jul 5 20:44:52 2005
@@ -14,13 +14,8 @@
_description files expl 'archive file'
if [[ "$1" = *[urtx]* ]]; then
- if [[ "$1" = *[zZ]* ]]; then
- _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)'
- elif [[ "$1" = *[Ijy]* ]]; then
- _files "$expl[@]" -g '*.(tar|TAR).bz2(-.)'
- else
- _files "$expl[@]" -g '*.(tar|TAR)(-.)'
- fi
+# bsdtar/libarchive handle these automagically
+ _files "$expl[@]" -g '*.((tar|TAR|iso|ISO|cpio).(|(gz|GZ|Z|bz2))|tgz|tbz|jar|zip)(-.)'
else
_files "$expl[@]"
fi