fix(scrub): restore missing line continuation in aggressive_patterns #115

Merged
rootiest merged 1 commits from fix/scrub-aggressive-patterns-backslash into main 2026-08-22 04:24:31 +00:00
Owner

Summary

  • A missing trailing \ after the Thumbs.db:encryptable pattern terminated the aggressive_patterns array early
  • The AI-tool patterns (.gemini*, .claude*, .antigravity*, .remember*) were then executed as a bogus command instead of being appended to the array
  • Result: scrub -a never actually purged those patterns, and every scrub invocation printed a spurious Unknown command: '^\.gemini.*' error

Found incidentally while working on the colored --help output task (see the separate feat/colored-help-text PR) — split out here per our new workflow rule of keeping unrelated fixes on their own branch/PR.

Test plan

  • scrub --help no longer throws an error
  • scrub -d -a (dry run + aggressive) lists .claude*/.gemini*/etc. among the aggressive targets found
## Summary - A missing trailing `\` after the `Thumbs.db:encryptable` pattern terminated the `aggressive_patterns` array early - The AI-tool patterns (`.gemini*`, `.claude*`, `.antigravity*`, `.remember*`) were then executed as a bogus command instead of being appended to the array - Result: `scrub -a` never actually purged those patterns, and *every* `scrub` invocation printed a spurious `Unknown command: '^\.gemini.*'` error Found incidentally while working on the colored `--help` output task (see the separate `feat/colored-help-text` PR) — split out here per our new workflow rule of keeping unrelated fixes on their own branch/PR. ## Test plan - [x] `scrub --help` no longer throws an error - [x] `scrub -d -a` (dry run + aggressive) lists `.claude*`/`.gemini*`/etc. among the aggressive targets found
rootiest added 1 commit 2026-08-22 04:23:43 +00:00
A missing trailing backslash after the Thumbs.db:encryptable pattern
terminated the `set -l aggressive_patterns` array early. The AI-tool
patterns (.gemini*, .claude*, .antigravity*, .remember*) were then
executed as a bogus command instead of being appended to the array,
so scrub -a never actually purged them, and every scrub invocation
printed a spurious "Unknown command" error.
rootiest merged commit b1a0c6c488 into main 2026-08-22 04:24:31 +00:00
rootiest deleted branch fix/scrub-aggressive-patterns-backslash 2026-08-22 04:24:31 +00:00
Sign in to join this conversation.