Skip to content

Fix hosted execution of constructed tool commands - #5

Merged
deltathedumb merged 2 commits into
betafrom
fix/subprocess-shell-command
Jul 19, 2026
Merged

Fix hosted execution of constructed tool commands#5
deltathedumb merged 2 commits into
betafrom
fix/subprocess-shell-command

Conversation

@deltathedumb

Copy link
Copy Markdown
Owner

driver._run() intentionally constructs one quoted command string so the self-hosted subprocess shim can execute it through os.system. Under CPython, the same string was passed to subprocess.run without shell=True, causing the entire NASM command to be treated as an executable filename.

This PR applies the one-line shell contract and adds a focused mock regression test. The bug was exposed by PortaPy's genuine shared-library build after source compilation completed and NASM invocation began.

@deltathedumb
deltathedumb merged commit 552f29e into beta Jul 19, 2026
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.

1 participant