Ble.sh: After update: -bash expression (error token is .....

Created on 8 May 2021  ·  8Comments  ·  Source: akinomyoga/ble.sh

ble version: 0.4.0-devel3+ea05fc5
Bash version: 5.0.17(1)-release, x86_64-pc-linux-gnu

I did ble_update and after that it has stopped working and each time, I open a new terminal window I am getting:

ble/term.sh: updating tput cache for TERM=xterm-256color... done
-bash: ((: 32 2 11 32 21 96 95 95 102 122 102 95 99 100 95 95 96 27 5 27 114 13 25 8 27 32 25 27 121 24 24 4: syntax error in expression (error token is "2 11 32 21 96 95 95 102 122 102 95 99 100 95 95 96 27 5 27 114 13 25 8 27 32 25 27 121 24 24 4")
-bash: ((: 32 2 11 32 21 96 95 95 102 122 102 95 99 100 95 95 96 27 5 27 114 13 25 8 27 32 25 27 121 24 24 4: syntax error in expression (error token is "2 11 32 21 96 95 95 102 122 102 95 99 100 95 95 96 27 5 27 114 13 25 8 27 32 25 27 121 24 24 4")
-bash: 32 2 11 32 21 96 95 95 102 122 102 95 99 100 95 95 96 27 5 27 114 13 25 8 27 32 25 27 121 24 24 4: syntax error in expression (error token is "2 11 32 21 96 95 95 102 122 102 95 99 100 95 95 96 27 5 27 114 13 25 8 27 32 25 27 121 24 24 4")
bug

All 8 comments

Thank you for the report. Hmm,

  • Q1. Do you remember what is the previous version (commit hash) of ble.sh before ble-update? -> probably 0506df28 (the one reported in #99)
  • Q2. Can you identify in which commit does the error start to occur? -> ea05fc5 (I have pinned down)
  • Q3. [Edit] Does the error also happen when you clone a new repository of ble.sh and load it? -> I guess Yes

I have gone back to the old commit 0506df28baa6ac54de6cb6650d2ad208b0c00190 and no issue. I think, I wont be updating for now and be using this version 0506df

OK! Thank you for the information!

Ah, OK! I could reproduce the problem. This exactly started to happen on ea05fc5.

There you go!

I pushed a fix c257299. It was really a trivial mistake. Can you update it and see if it works? If you cannot start ble.sh correctly, you can update it by loading ble.sh with an option --noinputrc and then running ble-update.

$ source /path/to/ble.sh --noattach --noinputrc
$ ble-update

OK! Thank you for the check!

Was this page helpful?
0 / 5 - 0 ratings