-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add meson.run command #70
Conversation
The command operates in two modes. If a single argument is given, it uses subprocess's `shell=True`, so you can use shell substitution, as in: spin run 'echo $PYTHONPATH' If multiple arguments are given, it uses standard execution, e.g.: spin run python -c 'import sys; del sys.path[0]; import example_pkg' Enabling `shell=True` for the latter would incorrectly disregarded the quoting.
Thanks! Quick question, upon skimming the code, it's not clear to me when do you use single quotes vs no quotes? Is it worth documenting? |
I can make that more explicit, although this is standard shell behavior. If you don't use quotes, then your current shell will immediately expand variables like |
47c49c7
to
4d7ff76
Compare
I can't quite get Windows to do what I want, but I'm getting hold of a physical test machine soon which should help debugging significantly. |
Phew 😅 |
The command operates in two modes. If a single argument is given, it uses subprocess's
shell=True
, so you can use shell substitution, as in:spin run 'echo $PYTHONPATH'
If multiple arguments are given, it uses standard execution, e.g.:
spin run python -c 'import sys; del sys.path[0]; import example_pkg'
Enabling
shell=True
for the latter would incorrectly disregarded the quoting.Closes #69