Skip to content

Fix: [SECURITY] Refactor os.system to subprocess.run to fix quoting issue - #10

Open
glensc wants to merge 2 commits into
zagaran:masterfrom
glensc:os-system-refactor-only
Open

Fix: [SECURITY] Refactor os.system to subprocess.run to fix quoting issue#10
glensc wants to merge 2 commits into
zagaran:masterfrom
glensc:os-system-refactor-only

Conversation

@glensc

@glensc glensc commented Aug 12, 2026

Copy link
Copy Markdown

Replace the shell-based os.system(...) call with subprocess.run(...) using a list of arguments.

Fixes #8

Also, ensures the Ctrl+C behavior remains in place:

Replace the shell-based `os.system(...)` call with `subprocess.run(...)` using a
list of arguments.

Co-authored-by: GitHub Copilot (MAI-1.1 Flash) <copilot@github.com>
@glensc glensc changed the title Fix: Refactor os.system to subprocess.run to fix quoting issue Fix: [SECURITY] Refactor os.system to subprocess.run to fix quoting issue Aug 12, 2026
@glensc

glensc commented Aug 24, 2026

Copy link
Copy Markdown
Author

@zags, @alvinsiu: can you take look? and other pr's i've submitted:

- Wait through parent KeyboardInterrupt while the child handles SIGINT
- Return the child status without killing or terminating the session

Co-authored-by: OpenCode (gpt-5.6-sol) <noreply@openai.com>
@glensc
glensc force-pushed the os-system-refactor-only branch from ce71ceb to ffc9ffd Compare August 24, 2026 13:25
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.

Unable to use "}" in command

1 participant