Skip to content

Arithmetic syntax error #646

@LeonardoMor

Description

@LeonardoMor
$ ble summary
/bin/zsh: no such option: norc
GNU bash, version 5.3.3(1)-release (aarch64-apple-darwin24.4.0)
ble.sh, version 0.4.0-devel4+8060b7ad (noarch) [git 2.39.5 (Apple Git-154), GNU Make 3.81, GNU Awk 5.3.1, API 4.0, (GNU MPFR 4.2.2, GNU MP 6.3.0)]
bash-completion, version 2.16.0 (hash:480ffcc6a751e55621ec526eb5dea7a0d86d9e72, 17877 bytes) (noarch)
starship, version 1.23.0 (rustc 1.86.0 (05f9846f8 2025-03-31) (Homebrew), 2025-04-27 15:52:14 +00:00)
locale: LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
terminal: TERM=tmux-256color wcwidth=16.0-west/16.0-2+ri, tmux:0 (84;0;0), unknown:- (1;10;0)
options: +braceexpand +emacs +hashall +histexpand +history +interactive-comments +monitor +checkwinsize +cmdhist +complete_fullquote +expand_aliases +extglob +extquote +force_fignore +globasciiranges +globskipdots +histappend +inherit_errexit +interactive_comments +login_shell +patsub_replacement +progcomp +promptvars +sourcepath

I intended to write declare -A excluded.

I can type up to declare -A . The moment I press e I get the following:

❯ declare -A bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
[ble: press RET to continue]bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
[ble: press RET to continue]

After that point, any key press would repeat the error. For example:

❯ declare -A bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
[ble: press RET to continue]bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
bash: /Users/lmoracas/.local/state: arithmetic syntax error: operand expected (error token is "/Users/lmoracas/.local/state")
[ble: press RET to continue]

The same behavior can be reproduced without Tmux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions