-
-
Notifications
You must be signed in to change notification settings - Fork 164
FIx whitespace handling when invoking Python #245
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
Conversation
Avoid shell entirely on *nixes
|
Handling the spaces in the ODM path looks 👍 thanks. What's the advantage for not using shell on Unix? |
|
It's just not needed on Unix, and wasn't used before my previous PR. By not using it when not needed, it makes it more efficient and avoids shell injections. On Windows, newer versions of node require the use of |
|
Ok, so mostly to avoid shell injections, but the config.odm_path parameter should be trusted. |
|
We still need the quotation marks. When using I can update the commit to always quote the project/script path. |
This reverts commit c244f07.
|
Good point; I've made the changes, thanks for the PR! 🙏 |
|
The script path has to be escaped too |
When using the shell, we need to quote our arguments! Also we only need the shell on Windows, so avoid using it on *nixes.