git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Bash Bug

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 14, 2017, 20:33 UTC
Message-ID
<alpine.DEB.2.21.1.1707142227240.4193@virtualbox>
In-Reply-To
<1500044588.25789.109.camel@mad-scientist.net>
Hi,
On Fri, 14 Jul 2017, Paul Smith wrote:
Show 7 quoted lines
> On Fri, 2017-07-14 at 09:59 -0500, Kavita Desai wrote:
> > What does "echo $PATH" show?
> > /c/Users/Kavita/
> 
> Well, there you go.  That's clearly wrong.
> 
> You absolutely have to have /bin and /usr/bin on your PATH,

As Kavita talks about Git Bash, it is probably Git for Windows, for which /bin should not be in the PATH but /mingw64/bin or /mingw32/bin (depending on the architecture).

It may be messed up by some strange setting in the User Environment. Go to the Windows Explorer, right-click on "This PC", select "Properties", in the newly-opened window ("Control Panel>All Control Panel Items>System"), next to the "Computer name, domain, and workgroup settings" select "Change settings" which brings up the "System Properties" window, in whose "Advanced" tab is an "Environment Variables" button.

(Or hit the Windows key, type "Edit the system environment variables")

You should find the "Path" variable at least in the System variables. It is case-insensitive, so if your User variables contain, say, an empty value for a key "paTH", then the riddle is solved.

Ciao, Johannes

Previous: Paul SmithNext: Paul Smith
Message 7 of 9 in “Git Bash Bug”
  1. Kavita DesaiJul 14, 2017
  2. Johannes SchindelinJul 14, 2017
  3. Kavita DesaiJul 14, 2017
  4. Paul SmithJul 14, 2017
  5. Kavita DesaiJul 14, 2017
  6. Paul SmithJul 14, 2017
  7. Johannes SchindelinJul 14, 2017
  8. Paul SmithJul 14, 2017
  9. Johannes SchindelinJul 14, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.