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:
parent
d1dfcfb8aa
commit
f9ad911370
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# <![CDATA[
|
# <![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>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1574,7 +1574,7 @@ _zip()
|
|||||||
|
|
||||||
_expand || return 0
|
_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
|
[ "$have" ] && complete -F _zip -o filenames gzip bzip2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user