-
Notifications
You must be signed in to change notification settings - Fork 58
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
Format arguments #76
Format arguments #76
Conversation
… can be used for both non-interactive and interactive shell. The git_cmd that is used as argument for 'bash -c' is a string that is interpreted by bash, so quoting the arguments is straight forward.
…ces. For example VSCode use its installation directory as cwd when doing the initial 'git --version' check, and if that directory contains spaces then the check fails to find git.
Thanks for your work on this, and for expanding the test cases. I like that this approach unifies some of the code and simplifies testing, and it is almost as fast as the current solution. But I noticed a few things.
Other than that, I think this PR looks good and I'm looking forward to merging it. |
For escaping/quoting, maybe we should try the |
Yeah the double execution of I dismissed the example with the ` character as that command is not working inside wsl or in linux because it is not complete since it expects a matching `. I'll add the documentation, don't know how I missed it... |
Ah, yes, the ` character not working in Linux/WSL is a valid point. It is probably not a problem other than for constructed toy examples. |
Alternative solution for PR #75