From: Thorsten Glaser Date: Mon, 11 May 2026 22:46:04 GMT Subject: Re: git hard-codes use of /bin/sh for aliases Message-ID: <9f279637-c0fe-c88b-24de-3a00b957ae3b@b1-systems.de> In-Reply-To: On Mon, 11 May 2026, brian m. carlson wrote: >On Linux, I have mksh, but my work machine on macOS does not, so >specifying `core.sh = /bin/mksh` would not work on all my systems. If But it could be made possible by pointing it to ~/.etc/bin/mksh on the Macintosh… >I'll also note that Git doesn't handle aliases specially. Git has a >with-shell and a without-shell mode for running commands, and we use the >former for aliases. Ah, okay. I was merely wondering that it was not configurable for aliases. When looking at the aliases in detail, I found that I already invoked mksh -c '…' in those that used mksh-specific code, and that the one that failed merely uses a recent POSIX sh construct that /bin/sh on a customer system does not yet implement and I could reword it. 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