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

Re: Change Native Windows shell

From
Steven Penny <svnpenn@gmail.com>
Date
Jun 8, 2020, 23:14 UTC
Message-ID
<CAAXzdLVmuONmow6cB-kko8-CkP2sA=UfpPBkiXqSCuTacGsFWA@mail.gmail.com>
In-Reply-To
<nycvar.QRO.7.76.6.2006081935530.482@ZVAVAG-DN14RQO.ybpnyqbznva>
On Mon, Jun 8, 2020 at 5:46 PM Johannes Schindelin wrote:
Show 13 quoted lines
> That assumes that PowerShell is installed, which is not guaranteed,
> either.
>
> Besides, quoting rules are most likely different with PowerShell than what
> Git assumes, so you will have to take care of that, too.
>
> Finally, there are plenty of tips out there in the internet that simply
> expect a POSIX shell to execute those script snippets. Any user would be
> completely (and unnnecessarily) puzzled if those snippets won't work with
> their Git for Windows.
>
> In short: it would be unwise for me to accept this change into Git for
> Windows, at least as-is.

I found a workaround. It seems as long as PAGER or similar is not get, then Git just tries to call `less.exe`. I didnt realize when I first posted this, but native Windows Less is available:

https://github.com/jftuga/less-Windows/releases
So I am just bundling that with my Windows native Git:
https://github.com/nu8/gulf/releases
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 6 of 7 in “Change Native Windows shell”
  1. Steven PennyJun 4, 2020
  2. brian m. carlsonJun 5, 2020
  3. Steven PennyJun 5, 2020
  4. Jonathan NiederJun 5, 2020
  5. Johannes SchindelinJun 8, 2020
  6. Steven PennyJun 8, 2020
  7. Johannes SchindelinJun 9, 2020

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.