ble.sh: [mawk 1.3.3-20090705] mawk regex error

ble version: latest master version & ble-0.4.0-devel3 (2023-04-03) Bash version: 4.3.48(1)-release

I use this method to install:

# TRIAL without installation

git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
make -C ble.sh
source ble.sh/out/ble.sh

then, when I type ‘source ble.sh/out/ble.sh’, something strange happens;

xxxx@hw:~$ cd ~/.local/share/blesh/
xxxx@hw:~/.local/share/blesh$ source ble.sh/out/ble.sh
ble/term.sh: updating tput cache for TERM=xterm-256color... mawk: line 37: regular expression compile failed (missing operand)
^('[^']*'|\$'([^\\']|\\.)*'|\$?"([^\\"]|\\.)*"|\\.|[^[:space:]"'`;&|()])*
ble/term.sh: updating tput cache for TERM=xterm-256color... done
xxxx@hw:~/.local/share/blesh$ mawk: line 37: regular expression compile failed (missing operand)ap.sh: updating key sequences... done
^('[^']*'|\$'([^\\']|\\.)*'|\$?"([^\\"]|\\.)*"|\\.|[^[:space:]"'`;&|()])*
xxxx@hw:~/.local/share/blesh$ 

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 53 (21 by maintainers)

Most upvoted comments

the old issuse solved, but another new issuse happens :

ble/term.sh: updating tput cache for TERM=xterm-256color... done
ble.sh (/usr/share/bash-completion/bash_completion:44): An attempt to make variable `BASH_COMPLETION_COMPAT_DIR' readonly was blocked.
ble.sh: The global variables with unprefixed lowercase names or special names should not be made readonly. It can break arbitrary Bash configurations.

how to solve it ?