mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-01 04:46:08 +02:00
38289: "builtin enable" in $_comp_setup to avoid accidentally invoking external command of the same name
This commit is contained in:
parent
67c0174093
commit
5e71690c19
|
@ -1,3 +1,8 @@
|
|||
2016-04-15 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 38289: Completion/compinit: "builtin enable" in $_comp_setup
|
||||
to avoid accidentally invoking external command of the same name
|
||||
|
||||
2016-04-14 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Han Pingtian: 38219: Completion/Zsh/Context/_subscript:
|
||||
|
|
|
@ -167,11 +167,11 @@ _comp_options=(
|
|||
typeset -gH _comp_setup='local -A _comp_caller_options;
|
||||
_comp_caller_options=(${(kv)options[@]});
|
||||
setopt localoptions localtraps localpatterns ${_comp_options[@]};
|
||||
local IFS=$'\'\ \\t\\r\\n\\0\''
|
||||
enable -p \| \~ \( \? \* \[ \< \^ \#
|
||||
local IFS=$'\'\ \\t\\r\\n\\0\'';
|
||||
builtin enable -p \| \~ \( \? \* \[ \< \^ \# 2>/dev/null;
|
||||
exec </dev/null;
|
||||
trap - ZERR
|
||||
local -a reply
|
||||
trap - ZERR;
|
||||
local -a reply;
|
||||
local REPLY'
|
||||
|
||||
# These can hold names of functions that are to be called before/after all
|
||||
|
|
Loading…
Reference in New Issue