- tar should also be able to recognise .tar.Z (or .tZ for that matter) files

This commit is contained in:
ianmacd 2002-12-16 19:48:58 +00:00
parent ee4121a784
commit 392edb639c

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b # bash_completion - some programmable completion functions for bash 2.05b
# #
# $Id: bash_completion,v 1.487 2002/12/14 02:17:43 ianmacd Exp $ # $Id: bash_completion,v 1.488 2002/12/16 20:48:58 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -2122,8 +2122,8 @@ _tar()
regex=$ext regex=$ext
;; ;;
*z*f) *z*f)
ext='t?(ar.)gz' ext='t?(ar.)@(gz|Z)'
regex='t\(ar\.\)gz' regex='t\(ar\.\)\(gz\|Z\)'
;; ;;
*[Ijy]*f) *[Ijy]*f)
ext='t?(ar.)bz?(2)' ext='t?(ar.)bz?(2)'
@ -3886,7 +3886,8 @@ _perldoc()
;; ;;
*) *)
_perlmodules _perlmodules
COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=cat man perl | sed -ne "/perl.*Perl overview/,/perlwin32/s/^[^a-z0-9]*\([a-z0-9]*\).*$/\1/p")' -- $cur ) ) COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=cat man perl | sed -ne "/perl.*Perl overview/,/perlwin32/s/^[^a-z0-9]*\([a-z0-9]*\).*$/\1/p")' -- $cur ) )
return 0 return 0
;; ;;
esac esac