- _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
This commit is contained in:
ianmacd 2002-03-26 15:27:02 +00:00
parent 6b4dd7364e
commit ca6ebad37b

View File

@ -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 <ian@caliban.org>
#
@ -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 ) )
;;