-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Bug ~ quoting? failure on windows-platform #296
Comments
Thank you for reporting this. So what are the actual quoting/escaping rules for "bat.exe --paging=always --pager=\"cmd.exe /c more.com\" README.md" be passed to other programs without any problem? |
You're correct; parsing command lines on Windows is complicated and quirky. And the rules changed in 2008. David Deley has a good explanation of the various rules and changes (with examples) "How Command Line Parameters Are Parsed". If you're handing the command line off to If you're handing off directly to another windows process, I think it's ok to assume the 2008+ parsing behavior, except that
That's why I fell back to
|
Thank you for the detailed explanation and for all the references, especially "How Command Line Parameters Are Parsed". I didn't know it was that complicated 😦 I'm inclined to accept the Alternatively, would it help to use PowerShell instead of |
I don't think PowerShell is a solution at this point. The initial design was not well thought out and it's also struggling with command line escaping and still evolving.
|
It looks like the resolution of rust-lang/rust#29494 (a new |
👍🏻 |
Any update on this? |
Looks like this might be stabilized in 1.61, so it will take a few more months (at least). In the meantime, you might be able to use the new |
FYI @rivy
Someone with access to a Windows machine might be able to resolve this, ideally backed up by some new (regression) tests. |
Hello, Pretty cool tool, btw. It's my go-to for performance tests 🥇 |
In example, for
bat
:When testing with
hyperfine
:but, using a command-string without internal quoting (by passing arguments to
bat
via the environment):The text of the target command shown by
hyperfine
looks correct, but the target is not being executed as displayed.This is likely a shell quoting issue.
The text was updated successfully, but these errors were encountered: