Skip to content

Add quotes around executable path on Windows, add test for it#116

Merged
ofek merged 4 commits into
mainfrom
julien.lebot/fix_windows_space_in_path_issue
Jun 4, 2025
Merged

Add quotes around executable path on Windows, add test for it#116
ofek merged 4 commits into
mainfrom
julien.lebot/fix_windows_space_in_path_issue

Conversation

@julien-lebot

Copy link
Copy Markdown
Contributor

This PR adds quotes around the executable passed to pty.spawn on Windows, this is to prevent an issue with spaces causing the cryptic %1 is not a valid Win32 application..
I have also added a test that shows that the fix is working - tested by restoring the original, unquoted executable and verifying the test failed.

@julien-lebot julien-lebot requested a review from ofek June 3, 2025 20:23

@ofek ofek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ofek ofek merged commit 8c20466 into main Jun 4, 2025
27 checks passed
@ofek ofek deleted the julien.lebot/fix_windows_space_in_path_issue branch June 4, 2025 01:13
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