From 5e71690c1993100032a8e15ee937865aaa2350c4 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 15 Apr 2016 21:39:04 -0700 Subject: 38289: "builtin enable" in $_comp_setup to avoid accidentally invoking external command of the same name --- Completion/compinit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion') diff --git a/Completion/compinit b/Completion/compinit index 4b9a77853..6612baca0 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -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