Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command spawning (still) #531

Merged
merged 1 commit into from
Jan 29, 2018
Merged

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Jan 29, 2018

Summary

There was a bug in how ChildProcess.build was called. This PR fixes this for the still branch, backporting the changes from #520.

Details

Calling #to_a was called on UnixCommandString representing the executable, splitting the name unnecessarily.

Motivation and Context

See #490.

How Has This Been Tested?

A spec was added for this. This still needs to be tested on Windows.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I've added tests for my code

This fixes WindowsCommandString#to_a and UnixCommandString#to_a so the
right thing gets passed to ChildProcess.
@mvz mvz requested a review from olleolleolle January 29, 2018 07:25
Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

I find this clear and an easy read.

Thank you for improving this needy part!

@mvz mvz merged commit 8dbd2e1 into still Jan 29, 2018
@mvz mvz deleted the issue-490-fix-command-spawning-still branch January 29, 2018 08:47
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