Skip to content

Commit

Permalink
syntax: workaround Bash-4.1 arithmetic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jan 7, 2020
1 parent 4b5a458 commit a7c6ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-syntax.sh
Expand Up @@ -797,7 +797,7 @@ function ble/syntax/parse/nest-equals {
#%if !release
((onest[3]!=0&&onest[3]<=parent_inest)) || { ble/util/stackdump "invalid nest onest[3]=${onest[3]} parent_inest=$parent_inest text=$text" && return 0; }
#%end
((onest[3]<0?(parent_inest=onest[3]):(parent_inest-=onest[3])))
((parent_inest=onest[3]<0?onest[3]:(parent_inest-onest[3])))
done
}

Expand Down

0 comments on commit a7c6ea4

Please sign in to comment.