in _zip(), $xspec needs to be quoted to stop it from acting as a shell glob,

rather than a parameter to compgen
This commit is contained in:
ianmacd 2002-01-31 16:01:43 +00:00
parent d1dfcfb8aa
commit f9ad911370

View File

@ -2,7 +2,7 @@
#
# <![CDATA[
#
# $Id: bash_completion,v 1.79 2002/01/31 01:35:52 ianmacd Exp $
# $Id: bash_completion,v 1.80 2002/01/31 17:01:43 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1574,7 +1574,7 @@ _zip()
_expand || return 0
COMPREPLY=( $( compgen -f -X $xspec $cur ) $( compgen -d $cur ) )
COMPREPLY=( $( compgen -f -X "$xspec" $cur ) $( compgen -d $cur ) )
}
[ "$have" ] && complete -F _zip -o filenames gzip bzip2