Fix proc_open_compat util on Windows#5689
Fix proc_open_compat util on Windows#5689danielbachhuber merged 1 commit intowp-cli:masterfrom lipemat:fix-windows-commands
Conversation
Wrapping the commands in double quotes conflicts with various flags also using double quotes. For example when running `db export` you get. `Warning: Failed to get current character set of the posts table. Reason: '"mysql --no-defaults --no-auto-rehash --batch --skip-column-names --host="localhost" --user="mat" --default-ch aracter-set="utf8" --execute="SELECT' is not recognized as an internal or external command, operable program or batch file.` Removing the quotes resolves the issue.
|
Since |
Yes. I am open to this pattern. |
|
If I get a chance I might try to make that change and get the tests to run, although it would be great if someone more familiar with running all the tests could do this instead. |
danielbachhuber
left a comment
There was a problem hiding this comment.
Thanks @lipemat !
Landing so we can let it soak and see if any issues come up: #5521 (comment)
Wrapping the commands in double quotes conflicts with various flags also using double quotes.
For example when running
db exportyou get.Warning: Failed to get current character set of the posts table. Reason: '"mysql --no-defaults --no-auto-rehash --batch --skip-column-names --host="localhost" --user="mat" --default-ch aracter-set="utf8" --execute="SELECT' is not recognized as an internal or external command, operable program or batch file.Removing the quotes resolves the issue.