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

RE: CRLF behavior

From
JDJohn Dlugosz <jdlugosz@tradestation.com>
Date
Jul 21, 2010, 22:25 UTC
Message-ID
<1A9EA7E081C3FE46A0F446FFB66D10EB93992A@FL01EXMB01.trad.tradestation.com>
In-Reply-To
<AANLkTiktnUV8WWSFcsj461QiG6WNv_kKxNFdJ5MBtdoy@mail.gmail.com>
> It take it back: it does do this.  But if $HOME isn't set, apparently
> it silently fails to read $HOME/.gitconfig and uses a different set of
> options.  Just confirmed this myself, and it's true.  This probably
> should be considered a serious bug.
> 
> Avery
The "git bash here" launches a copy of CMD.exe (the brain-dead Windows shell that's descendant from COMMAND.COM) with a command line that tells it to run sh.exe --login -i.
I see that neither the CMD process nor the sh.exe process contains a HOME environment variable.  So, the $HOME reported within bash is something that bash itself came up with based on Windows settings, and was not set before running it.
The wish.exe running git-gui _does_ contain a HOME environment variable, set to a natural Windows path.  It also contains others, such as GIT_DIR that contains the current repository it was started for, as a Windows drive-letter-path but with Unix-style slashes, and GIT_ASK_YESNO.  Presumably these were set as part of the machinery that launched the program from the context menu in explorer.  I don't see how it's being launched -- it does not show up in Autoruns (from Sysinternals).
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
  If you received this in error, please contact the sender and delete the material from any computer.
Previous: Avery PennarunNext: John Dlugosz
Message 6 of 9 in “CRLF behavior”
  1. John DlugoszJul 21, 2010
  2. Avery PennarunJul 21, 2010
  3. John DlugoszJul 21, 2010
  4. Avery PennarunJul 21, 2010
  5. Avery PennarunJul 21, 2010
  6. John DlugoszJul 21, 2010
  7. John DlugoszJul 21, 2010
  8. Finn Arne GangstadJul 26, 2010
  9. John DlugoszJul 26, 2010

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.