Skip to content
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

Hyperfine no longer auto assumes /C for windows if cmd.exe is not the selected shell. #582

Merged
merged 1 commit into from
Oct 29, 2022
Merged

Conversation

FilipAndersson245
Copy link
Contributor

@FilipAndersson245 FilipAndersson245 commented Oct 22, 2022

Ensuring we only use cmd-specific command building when cmd is in use, as this prevents alternative shells to be run on windows, like Nushell.

Closes #568

@FilipAndersson245 FilipAndersson245 changed the title Fixes #568 Fixes #568, nolonger autoassumes /C for windows if cmd.exe is not the selected shell. Oct 22, 2022
@FilipAndersson245 FilipAndersson245 changed the title Fixes #568, nolonger autoassumes /C for windows if cmd.exe is not the selected shell. Hyperfine no longer auto assumes /C for windows if cmd.exe is not the selected shell. Oct 22, 2022
@sharkdp
Copy link
Owner

sharkdp commented Oct 23, 2022

Thank you very much for your contribution!

I understand that this fixes the behavior for nushell, but how about other shells on Windows, like PowerShell?

@FilipAndersson245
Copy link
Contributor Author

FilipAndersson245 commented Oct 23, 2022

I tested powershell and it supports both /C and -c. It seems to be no difference between the two except for the way of calling them.

@FilipAndersson245
Copy link
Contributor Author

Anything more that has to be checked or can we close this issue @sharkdp?

@sharkdp sharkdp merged commit f00acf9 into sharkdp:master Oct 29, 2022
@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2022

No, looks good. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hyperfine not working with nushell
2 participants