-
Notifications
You must be signed in to change notification settings - Fork 2.6k
git help <command> dosen't work in the latest release #2014
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
Comments
Why did you delete most of the questions? Now I have to ask, tediously, all the information that is relevant to your problem. So first things first: it works here. Next: how come that (These are questions I should not need to spend time asking, we have that issue reporting template for a good reason: to help you write a complete bug report rather than an incomplete one.) Please do be mindful of others' time, especially of those persons who you ask for help. |
I'm experiencing either same underlying issue, or a very related one. When I invoked any help, the Windows Command Prompt is started in the shell where git was invoked: Setup
Git-2.20.1-64-bit
Details
Git Bash
Help is shown
Windows Command Prompt opens |
@bruno-medeiros that does not happen here. Can you run this with |
Oops, a minor correction,
|
Sounds like your |
Hum, I haven't modified Is that
If I change |
Oh wait, I found it. I had MSYS2_ARG_CONV_EXCL set to |
Why not patch |
That could work too, although for now I'm preferring to unset |
I've stumbled upon the same issue with @dscho, to answer your question:
At least in my setup in 2.20.1, System32 reaches
It looks like Windows-style environment variables are not recognized by Git Bash in In 2.18.0, the same part of the
|
That is funny, indeed. Could you wiggle this a little further down? There were a couple of versions between 2.18.0 and 2.20.1; you should be able to use the Portable Gits to perform those tests, avoiding to override your system's Git for Windows. Once you pinned it down to a release, compare the |
Could not reproduce the issue in portable version. Tried reproducing with just the installed version. Could not get conclusive results (see table below), so I started comparing "portable" and "installed" on the same versions. During testing I found a weird dependency between launches of different Git Bash exe files. Steps:
If on a just installed version the Inconclusive results: one attempt for portable versions, and three attempts for installed:
Plus -- After the correlation between launching portable version and successful tests have been confirmed, the plus on second attempt for version |
And the environment you have in a plain cmd still shows the percent characters in |
No:
|
@rybak how about the Environment Variables in the System Properties (in your Control Panel)? |
Same for me. But. But, but, but... OMG I think I figured out something! My testing was in Git for Windows' SDK, which has a The contents of #!/usr/bin/env bash
# Copyright (C) 2014, Alexey Pavlov
# mailto:alexpux@gmail.com
# This file is part of Minimal SYStem version 2.
# https://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
# File: cmd
"$COMSPEC" "$@" And the contents of #!/usr/bin/env bash
# Copyright (C) 2014, Alexey Pavlov
# mailto:alexpux@gmail.com
# This file is part of Minimal SYStem version 2.
# https://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
# File: start
cmd //c start "${@//&/^&}" So it wants to start
The obvious best fix is to avoid that indirection to the non-existing So what I will do is to edit the If y'all could verify that this fixes the issue on your end, too, that would be lovely. |
What about the underlying issue of |
@rybak this is really a conundrum I was not quite able to solve: at first, in a fresh VM, I could reproduce the issue! And then I changed the So my take on it is that something (most likely, the invocation of even a single CMD) will expand those environment variables globally. However, this seems to be 1) very finicky/time-consuming to track down and 2) not really relevant, as soon as we use |
Fair enough.
…On Wed, 27 Feb 2019, 15:21 Johannes Schindelin, ***@***.***> wrote:
@rybak <https://github.com/rybak> this is really a conundrum I was not
quite able to solve: at first, in a fresh VM, I could reproduce the issue!
And then I changed the /usr/bin/start to verify that it fixes things for
me. Then I changed it back to investigate further but the environment no
longer had any percents in them!
So my take on it is that *something* (most likely, the invocation of even
a single CMD) will expand those environment variables *globally*.
However, this seems to be 1) very finicky/time-consuming to track down and
2) not really relevant, as soon as we use $COMSPEC in start, so I decided
to spend my time elsewhere (I spent 6h on the bug tracker today, which is
no fun at all...).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2014 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmFyHAkH2sfj7Oa43nwYP5KaBRnO9mMks5vRpR-gaJpZM4Z3w6e>
.
|
@rybak of course, if you find it in yourself to continue the hunt, I think it would be interesting to get to the bottom of this. As I said, my hunch was that invoking even one CMD would resolve the issue for all processes. If you find that this is true on your system, too, it would explain a lot. |
Setup
Details
Minimal, Complete, and Verifiable example
this will help us understand the issue.
**open the local help html file **
**warning :/usr/bin/start: line 8: cmd: command not found **
The text was updated successfully, but these errors were encountered: