[PATCH] braces: avoid signed overflow

2024-10-01 Thread Grisha Levit
INTMAX_MAX=9223372036854775807 eval ": {$((INTMAX_MAX-1))..$((INTMAX_MAX))}" braces.c:447:9: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'intmax_t' (aka 'long') --- braces.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/b

Re: Signal handling by readline

2024-10-01 Thread Chet Ramey
On 9/30/24 4:43 PM, Elad Lahav wrote: Applications that don't want readline to do this can disable it, at a cost. But it is still the case that bash makes many redundant system calls on every line entered. Is setting rl_catch_signals to 0 in bash going to have any adverse effects? That would

${param@a} should bypass unbound variable check or be processed ahead of it.

2024-10-01 Thread konsolebox
# declare -A x # echo ${x@a} A # set -u # echo ${x@a} bash: x: unbound variable Obvious workaround would be to disable `set -u` temporarily or assign a temporary array value but that shouldn't need to be done. Same thing happens with `declare -A x=()`. # bash --version GNU bash, version 5.3.0(1)