From e4454283edfb6d2662fcb3870b47beea9dbee691 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 19 Dec 2022 22:57:25 +0900 Subject: [PATCH] fix(make): work around new assoc subscript expansions in Bash 5.2 --- completions/make | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/completions/make b/completions/make index cf379c5e641..5b303289d2a 100644 --- a/completions/make +++ b/completions/make @@ -197,11 +197,7 @@ _make() paths[$path]=1 && [[ $path == "$prefix"*/* ]]; do path=${path%/*} - if [[ ! ${nchild[$path]+set} ]]; then - ((nchild[\$path] = 1)) - else - ((nchild[\$path]++)) - fi + nchild[$path]=$((${nchild[$path]-0} + 1)) done done