Skip to content

Commit

Permalink
main (ble-update): fix a bug that the check of "make" does not work i…
Browse files Browse the repository at this point in the history
…n Bash 3.2
  • Loading branch information
akinomyoga committed Jan 24, 2020
1 parent 58be70f commit 579c3e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/core-syntax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2666,7 +2666,10 @@ function ble-syntax:bash/ctx-command/.check-delimiter-or-redirect {
fi
((i+=len))
return 0
elif local rex='^(&&|\|[|&]?)|^;(;&?|&)|^[;&]' && [[ $tail =~ $rex ]]; then
elif local rex='^(&&|\|[|&]?)|^;(;&?|&)|^[;&]'
((_ble_bash<40000)) && rex='^(&&|\|\|?)|^;(;)|^[;&]'
[[ $tail =~ $rex ]]
then
# 制御演算子 && || | & ; |& ;; ;;& ;&

if [[ $BASH_REMATCH == ';' ]]; then
Expand Down

0 comments on commit 579c3e0

Please sign in to comment.