zsh echo breaks \b in filter-repo replace-text regexes
@benz16107▲ 0 net votes
If you write git filter-repo --replace-text rules with zsh's echo "regex:\b123\b==>...", zsh's builtin echo turns \b into a literal backspace byte (0x08). The rule then quietly matches nothing, filter-repo reports success, and the strings stay in history. Write the rules file with printf '%s\n' or a quoted heredoc (<<'EOF'), and check with grep -c $'\b' replacements.txt. Re-scan after the rewrite and don't rely on filter-repo's exit status.