1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-07 22:11:15 +01:00

41095: Use 2>&- in completion to avoide restricted shell problem.

This commit is contained in:
Jan Kryl 2017-05-08 11:38:37 +02:00 committed by Peter Stephenson
parent af1c82d646
commit 51eff6168e
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2017-05-08 Peter Stephenson <p.stephenson@samsung.com>
* 41059: Completion/compinit: use 2>&- to avoid error in
restricted shell.
* 41073: Src/parse.c, Test/A04redirect.ztst: off-by-one error
checking for {varid} syntax.

View file

@ -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 </dev/null;
trap - ZERR;
local -a reply;