From 7d84cde31330023b264a415ffa02686ee0338b4f Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Thu, 4 Apr 2019 18:45:19 -0500 Subject: 44201: _command_name: Check for external forcing precommand --- Completion/Base/Core/_main_complete | 6 ++++++ Completion/Base/Utility/_pick_variant | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete index aa2486236..6b2cf2bcf 100644 --- a/Completion/Base/Core/_main_complete +++ b/Completion/Base/Core/_main_complete @@ -45,6 +45,12 @@ unset _comp_priv_prefix # _precommand sets this to indicate we are following a precommand modifier local -a precommands +# Precommands which allow their wrapped command to be a builtin. +# All of these are necessarily builtins or reserved words themselves, +# but not all builtin precommands are listed here: +# for one, the 'command' builtin is excluded. +local -ar builtin_precommands=(- builtin eval exec nocorrect noglob time) + typeset -U _lastdescr _comp_ignore _comp_colors { diff --git a/Completion/Base/Utility/_pick_variant b/Completion/Base/Utility/_pick_variant index 872e8f583..b75233038 100644 --- a/Completion/Base/Utility/_pick_variant +++ b/Completion/Base/Utility/_pick_variant @@ -4,12 +4,6 @@ local output cmd pat pre local -a var local -A opts -# Precommands which allow their wrapped command to be a builtin. -# All of these are necessarily builtins or reserved words themselves, -# but not all builtin precommands are listed here: -# for one, the 'command' builtin is excluded. -local -ar builtin_precommands=(- builtin eval exec nocorrect noglob time) - (( $+_cmd_variant )) || typeset -gA _cmd_variant zparseopts -D -A opts b: c: r: -- cgit 1.4.1