From a16a6b544aa454f3c4f8d56af539ddfe4e897990 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 f1226675b9d..24f00f18f54 100644 --- a/completions/make +++ b/completions/make @@ -199,11 +199,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