Closed azatakmyradov closed 6 months ago
@azatakmyradov I suggest you have a read through the discussion in response to this PR and then revisit your patch.
@jrfnl sorry I didn't see that PR. I used escapeshellcmd
to escape the string and ^ or \ for spaces depending on the os. I also extracted it to a seperate function so I can write tests for it.
maybe worth checking out and having some thoughts:
This PR escapes spaces in binary path.
When you have space in your PHP binary path (Ex: /**/Library/Application Support/Herd/bin/php82'). I get an error output: