]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - lib/varstash
varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error
[zsh-autoenv.git] / lib / varstash
index 9844c325999f7261369965ca3f5010ab40542f84..320649c70e187c66d5549523b427a34b8009c716 100644 (file)
@@ -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