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

git hard-codes use of /bin/sh for aliases

From
TGThorsten Glaser <tglaser@b1-systems.de>
Date
May 11, 2026, 21:13 UTC
Message-ID
<6791cb26-16af-dcda-1dae-82b85da6fb0f@b1-systems.de>
Hi,

git aliases don’t use the user’s shell but a hardcoded /bin/sh, and this cannot be made configurable.

This, unfortunately, breaks quite some aliases and they cannot be made portable by adding something like core.sh = /bin/mksh to the .gitconfig.

I’d love if this could be made configurable.

bye, //Thorsten

-- 
Thorsten Glaser
Linux / Unix Developer
Tel.: +49 160 91168501
E-Mail: tglaser@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / https://www.b1-systems.de/
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt, HRB 3537
Next: brian m. carlson
Message 1 of 3 in “git hard-codes use of /bin/sh for aliases”
  1. Thorsten GlaserMay 11, 2026
  2. brian m. carlsonMay 11, 2026
  3. Thorsten GlaserMay 11, 2026

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.