Setup works on Windows when the home folder name has an apostrophe (#4386) (#4845)

`./setup` on Windows now installs when your home folder has an
apostrophe in its name, such as `C:\Users\O'Brien`.

Git Bash turns `/c/...` paths into `C:/...` before starting Bun, but
skips any path holding an apostrophe, so setup stopped with `Module not
found`.

Nothing to do: re-run `./setup` after upgrading.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=testing
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-26 15:34:41 +00:00
1 parent fd81a04ba7
commit 4ec576aaa5
5 files changed
+82 -9

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ function slice(from: string, to: string | null): string {
}
const HOOK_SECTIONS = [
slice('_bun_path() {', '\n}\n') + '\n}\n',
slice('_setup_ready_line() {', '\n}\n') + '\n}\n',
slice('CANONICAL_GSTACK_ROOT="$(gstack_canonical_claude_root)"', '# ─── GBrain detection'),
slice('# 11. Plan-tune cathedral hook install', '# ─── Redact pre-push guard consent'),