From 8d5161720a577de682d6fc75e3a319b0c4a5fe64 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 6 Jan 2020 19:26:50 +0800 Subject: [PATCH] syntax: workaround Bash-4.1 arithmetic bug --- ble-syntax.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ble-syntax.sh b/ble-syntax.sh index 5782c31a..bd22a4ef 100755 --- a/ble-syntax.sh +++ b/ble-syntax.sh @@ -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 }