From b9fa65b141c794b8fac479d161f4a5e1b5f2995a Mon Sep 17 00:00:00 2001 From: lachtan Date: Sun, 15 Mar 2026 16:34:14 +0100 Subject: [PATCH] Add whole-string quoting rule to bash style guide --- .claude/rules/bash-style.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.claude/rules/bash-style.md b/.claude/rules/bash-style.md index 36c50b3..36b1924 100644 --- a/.claude/rules/bash-style.md +++ b/.claude/rules/bash-style.md @@ -48,6 +48,7 @@ function do_thing() { - `(( ))` for arithmetic comparisons - `$(command)` for substitution, never backticks - Double quotes around expansions: `"$var"`, `"${array[@]}"` +- Quote the whole string, not just the variable: `"$HOME/.local/bin"` not `"$HOME"/.local/bin` - Single quotes for literals that must not expand - `printf` over `echo` when output contains escapes or format strings