You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Escape dollar sign for Windows local setup commands #4728
Revert the trailing-backtick change from PR #4559 on those five lines, restoring single-backtick PowerShell escaping. The bash error that PR #4559
attempted to silence is a non-issue in practice because:
The line is explicitly labelled "Windows users should use ` to escape dollar signs" — it is PowerShell-specific.
Windows users following the guide run this in PowerShell (the default shell of Windows Terminal / cmd environments wrapping pwsh), not bash.
The bash/git-bash user already has the first variant (line above) using $1, which works in bash.
Files to modify
docs/guides/local-setup.md — revert lines 42, 65, 91, 114, 130: remove the trailing so each becomes echo "<pm cmd> commitlint --edit \$1" > .husky/commit-msg.
Optional improvement
Also worth considering (but not strictly required to resolve the bug): change the comment above each PowerShell line from Windows users should use \ to escape dollar signsto# PowerShell (Windows): use to escape the dollar sign
— explicitly naming PowerShell since the escaping rule is shell-specific, not OS-specific (git-bash on Windows follows bash rules).
Activity
escapedcat commentedon Apr 22, 2026
Sure, happy for a PR
Claude:
docs: use nodejs commands for creating files on Windows (#4728) (#4730)