From ca6ebad37bb7d61fb868a82eab6f83cff76a88bf Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Tue, 26 Mar 2002 15:27:02 +0000 Subject: [PATCH] - _tar(): some distros (notably Slackware and Sorceror), use -y as the bzip compression switch, so we add this, along with -I, as that is sometimes used, too --- bash_completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash_completion b/bash_completion index e4c25581..c22e5b92 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.218 2002/03/26 16:17:12 ianmacd Exp $ +# $Id: bash_completion,v 1.219 2002/03/26 16:27:02 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -1554,7 +1554,7 @@ _tar() c*f) _filedir ;; - +([^zj])f) + +([^Izjy])f) COMPREPLY=( $( compgen -d -- $cur ) \ $( compgen -f -X '!*.tar' -- $cur ) ) ;; @@ -1562,7 +1562,7 @@ _tar() COMPREPLY=( $( compgen -d -- $cur ) \ $( compgen -f -X '!*.t?(ar.)gz' -- $cur ) ) ;; - *j*f) + *[Ijy]*f) COMPREPLY=( $( compgen -d -- $cur ) \ $( compgen -f -X '!*.tar.bz2' -- $cur ) ) ;;