-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Cannot call help using msys2 #7113
Comments
I found why it doesn't return to fish. Msys2 convert this: This behavior is documented here. To prevent this from happening, this: fish-shell/share/functions/help.fish Line 182 in 27f9920
could be changed to: $fish_browser " /c" "start $page_url" |
That's wild. Does that change actually help? I don't have MSYS2 installed, just the Git for Windows Bash, but when testing with |
Old postYes the quotes makes it work under msys2.I will look for a solution later today. I think we might be able to check if we're running msys2 with an env variable and then do whatever is necessary. Edit: I misread your comment, I had also deleted the quotes around the second argument. |
Old postNevermind !I had remove the second pair of quotes, could you test this: It works with msys2 and with cmd directly, I think it should work with Git for Windows too. Edit: I misread your comment. To summarize, this
|
I also noticed that dots are not escaped at multiple places ( fish-shell/share/functions/help.fish Line 145 in 27f9920
fish-shell/share/functions/help.fish Line 174 in 27f9920
fish-shell/share/functions/help.fish Line 181 in 27f9920
Is this voluntary? Should I update those when I make a PR for the previously mentioned changes ? |
Sure, that can't hurt. |
fish version 3.1.2
Msys2 has the
cygpath
command but nocygstart
.This result in
cygpath
not being called:fish-shell/share/functions/help.fish
Lines 139 to 143 in 27f9920
When no browser are set and since it doesn't find
cygstart
it defaults tocmd.exe
however becausecygpath
is not called the path is wrong which make this :/c/Windows/System32/cmd.exe /c 'start file:///usr/share/doc/fish/index.html'
fail.Instead of exiting with an error it then returns to cmd, typing
exit
will return to fish:From my understanding this could be resolved by changing the code quoted above to this:
I can submit a push request if needed.
Edit: I updated the regex from
cygstart|cmd\.exe
tocygstart|.*cmd\.exe
The text was updated successfully, but these errors were encountered: