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 057183c commit 840d6d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ble.pp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function ble-update {
local MAKE=
if type gmake &>/dev/null; then
MAKE=gmake
elif type make &>/dev/null && make --version |& grep -qiF 'GNU Make'; then
elif type make &>/dev/null && make --version 2>&1 | grep -qiF 'GNU Make'; then
MAKE=make
else
echo "ble-update: GNU Make is not available." >&2
Expand Down
5 changes: 4 additions & 1 deletion lib/core-syntax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2951,7 +2951,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 840d6d6

Please sign in to comment.