Re: [PATCH] rebase-i-exec: Allow space in SHELL_PATH
- From
Jeff King <peff@peff.net>
- Date
- Nov 16, 2015, 16:34 UTC
- Message-ID
- <20151116163404.GB15046@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.1.00.1511161656480.1686@s15462909.onlinehome-server.info>
On Mon, Nov 16, 2015 at 05:01:03PM +0100, Johannes Schindelin wrote:
Show 10 quoted lines
> To clarify the Git for Windows scenario: SHELL_PATH is indeed set to > `/bin/sh`, but reportedly it is converted into a full Windows path when we > leave the POSIX emulation layer, i.e. when `git.exe` is called (which has > *no* idea about POSIX paths, or at least next to none). > > The reason is, of course, that regular Windows programs would not know > what to do with the path /bin/sh. > > The problem arises when we re-enter the POSIX realm, i.e. when we run a > script (such as `git-rebase`): the path is not converted back!
Ah, thanks for this explanation. The whole thing seems much more clear to me now.
Even if later versions give us back the POSIX name, I think Fredrik's patch is a sane solution (and arguably how it should have been written in the first place, even leaving aside this issue).
-Peff