]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
_autoenv_debug: fix error with Zsh 5.0.5
authorDaniel Hahler <git@thequod.de>
Wed, 18 Nov 2015 18:23:05 +0000 (19:23 +0100)
committerDaniel Hahler <git@thequod.de>
Wed, 18 Nov 2015 18:23:05 +0000 (19:23 +0100)
> _autoenv_debug:local:1: not valid in this context: handler:

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/38.

autoenv.zsh

index f7e4f983915b419113e1762d1401e75a98a6daaf..df90cc5c35dda6da7017ebd07e15d5886e372ded 100644 (file)
@@ -140,7 +140,7 @@ _autoenv_stack_entered_contains() {
 
 # Internal function for debug output. {{{
 _autoenv_debug() {
-  local msg=$1
+  local msg="$1"
   local level=${2:-1}
   if [[ $AUTOENV_DEBUG -lt $level ]]; then
     return