Skip to content

Commit 795f86a

Browse files
Test Userclaude
andcommitted
fix: ZSH colon modifier bug + add teach style dogfood tests (#298)
Fix _teach_find_style_source colon modifier interpretation by using brace quoting (${var}:suffix instead of $var:suffix). Add 34-test automated dogfooding suite with sandbox-aware yq/sed skip detection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 970f3f4 commit 795f86a

2 files changed

Lines changed: 493 additions & 2 deletions

File tree

lib/teach-style-helpers.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _teach_find_style_source() {
4040
local has_style
4141
has_style=$(yq '.teaching_style // ""' "$config_file" 2>/dev/null)
4242
if [[ -n "$has_style" && "$has_style" != "null" && "$has_style" != "" ]]; then
43-
echo "$config_file:teach-config"
43+
echo "${config_file}:teach-config"
4444
return 0
4545
fi
4646
fi
@@ -49,7 +49,7 @@ _teach_find_style_source() {
4949
# Priority 2: Legacy .claude/teaching-style.local.md
5050
local legacy_file="$project_root/.claude/teaching-style.local.md"
5151
if [[ -f "$legacy_file" ]]; then
52-
echo "$legacy_file:legacy-md"
52+
echo "${legacy_file}:legacy-md"
5353
return 0
5454
fi
5555

0 commit comments

Comments
 (0)