1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-25 16:31:00 +02:00

_autoenv_debug: fix error with Zsh 5.0.5

> _autoenv_debug:local:1: not valid in this context: handler:

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/38.
This commit is contained in:
Daniel Hahler 2015-11-18 19:23:05 +01:00
parent 489bbb46fd
commit 1220d246b0

View File

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