From 7af82e259662a45f769ef550313e0b64074b944f Mon Sep 17 00:00:00 2001 From: comunicacaointeligente Date: Thu, 25 Jun 2026 14:02:40 -0300 Subject: [PATCH] fix: replace bash 4+ ${word^^} with POSIX tr for bash 3.2 compatibility create-new-feature.sh used ${word^^} (bash 4+ parameter expansion) on line 155. macOS ships bash 3.2 by default, where this fails with 'bad substitution', printing errors and silently dropping the acronym-preservation logic (short uppercase words like API get removed from generated branch names). Replaced with $(echo "$word" | tr '[:lower:]' '[:upper:]'), which is POSIX-compatible and works on bash 3.2 and 4+. Co-Authored-By: Claude Opus 4.8 --- scripts/bash/create-new-feature.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bash/create-new-feature.sh b/scripts/bash/create-new-feature.sh index c9609764f7..0094c76e66 100644 --- a/scripts/bash/create-new-feature.sh +++ b/scripts/bash/create-new-feature.sh @@ -152,7 +152,7 @@ generate_branch_name() { if ! echo "$word" | grep -qiE "$stop_words"; then if [ ${#word} -ge 3 ]; then meaningful_words+=("$word") - elif echo "$description" | grep -q "\b${word^^}\b"; then + elif echo "$description" | grep -q "\b$(echo "$word" | tr '[:lower:]' '[:upper:]')\b"; then # Keep short words if they appear as uppercase in original (likely acronyms) meaningful_words+=("$word") fi