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 4966449 commit 8d51617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ble-syntax.sh
Expand Up @@ -550,7 +550,7 @@ function ble-syntax/parse/nest-equals {
#%if !release
((onest[3]!=0&&onest[3]<=parent_inest)) || { ble-stackdump 'invalid nest' && 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 8d51617

Please sign in to comment.