From a88d41e095565986ddabb771b898114ee1ec6845 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Mon, 22 Oct 2018 17:20:35 -0500 Subject: [PATCH] main: Fix faulty test sudo -e does not take a command, so use another flag that does. --- .../test-data/alias-precommand-option-argument2.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/highlighters/main/test-data/alias-precommand-option-argument2.zsh b/highlighters/main/test-data/alias-precommand-option-argument2.zsh index 2fceff8..ebbb17b 100644 --- a/highlighters/main/test-data/alias-precommand-option-argument2.zsh +++ b/highlighters/main/test-data/alias-precommand-option-argument2.zsh @@ -28,15 +28,15 @@ # vim: ft=zsh sw=2 ts=2 et # ------------------------------------------------------------------------------------------------- -alias sde='sudo -e' -alias seu='sde -u' +alias sdb='sudo -b' +alias sbu='sdb -u' sudo(){} -BUFFER='seu phy1729 echo foo' +BUFFER='sbu phy1729 echo foo' expected_region_highlight=( - '1 3 alias' # seu - '1 3 precommand' # seu (sudo) + '1 3 alias' # sbu + '1 3 precommand' # sbu (sudo) '5 11 default' # phy1729 '13 16 commmand "issue #540"' # echo (not builtin) '18 20 default' # foo