From 51eff6168e40d760bdb715bc6fc5420d26449c4c Mon Sep 17 00:00:00 2001 From: Jan Kryl Date: Mon, 8 May 2017 11:38:37 +0200 Subject: 41095: Use 2>&- in completion to avoide restricted shell problem. --- Completion/compinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/compinit b/Completion/compinit index eb88a9fb9..c345ceb43 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -171,7 +171,7 @@ 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\''; - builtin enable -p \| \~ \( \? \* \[ \< \^ \# 2>/dev/null; + builtin enable -p \| \~ \( \? \* \[ \< \^ \# 2>&-; exec