]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error
authorDaniel Hahler <git@thequod.de>
Thu, 18 Dec 2014 18:45:19 +0000 (19:45 +0100)
committerDaniel Hahler <git@thequod.de>
Thu, 18 Dec 2014 18:45:19 +0000 (19:45 +0100)
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