From: Daniel Hahler Date: Thu, 18 Dec 2014 18:45:19 +0000 (+0100) Subject: varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error X-Git-Url: http://www.git.stargrave.org/?p=zsh-autoenv.git;a=commitdiff_plain;h=f5077e320de2dbd783aefb8dbb4340c40fb15b32 varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error --- diff --git a/lib/varstash b/lib/varstash index 9844c32..320649c 100644 --- a/lib/varstash +++ b/lib/varstash @@ -231,7 +231,7 @@ function stash() { function autostash() { local run_from_autostash=1 while [[ -n $1 ]]; do - if [[ $1 == "alias" && $2 =~ "=" ]]; then + if [[ $1 == "alias" && $2 = *=* ]]; then shift local _stashing_alias_assign=1 fi