From aad3bb04a8c18f997e90f57c9d0eb74414bb52b2 Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Wed, 23 Oct 2019 19:53:05 +1100 Subject: [PATCH] fix globbing --- plugins/do_sudo/do_sudo.plugin.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/do_sudo/do_sudo.plugin.zsh b/plugins/do_sudo/do_sudo.plugin.zsh index 8e28c1953..8d1770e94 100644 --- a/plugins/do_sudo/do_sudo.plugin.zsh +++ b/plugins/do_sudo/do_sudo.plugin.zsh @@ -25,7 +25,11 @@ function _do_sudo() { shift break else - args+=( $1 ) + if ((__do_sudo_glob)); then + args+=( $~==1 ) + else + args+=( $==1 ) + fi shift fi ;;