Skip to content

Use the actual caller directory for dor in PowerShell and cmd - #1303

Merged
nedtwigg merged 1 commit into
mainfrom
audit-cli-caller-directory
Oct 21, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
audit-cli-caller-directory

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

PowerShell and cmd inherit a POSIX PWD without maintaining it as their current directory changes. With Dormouse launched from a repository, running dor split from the home directory consequently opened the new shell back in the repository; relative file and Tool operations used that stale base too.

Set PWD to the Windows launcher's current directory before either Node launch path. Git Bash and WSL continue through the unchanged POSIX launcher.

Validation: two new real cmd-launcher regressions fail before the change and pass after it; all four launcher tests pass, including paths with spaces and exit-status propagation. Live standalone harness reproduced the wrong split directory and verified that the fixed launcher opens the new shell in the caller's home directory. Spec and Markdown lints pass.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 16a83db
Status: ✅  Deploy successful!
Preview URL: https://df968576.mouseterm.pages.dev
Branch Preview URL: https://audit-cli-caller-directory.mouseterm.pages.dev

View logs

@nedtwigg
nedtwigg merged commit d11dd10 into main Oct 21, 2026
14 checks passed
@nedtwigg
nedtwigg deleted the audit-cli-caller-directory branch October 21, 2026 17:02

This branch was successfully deployed

No deployments
hosted-preview — 16a83db4 Deployed Oct 21, 2026 by nedtwigg via cleanup #1858
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants