From: Junio C Hamano Date: Tue, 15 Jun 2021 02:37:57 GMT Subject: Re: [PATCH v2 1/2] subtree: fix the GIT_EXEC_PATH sanity check to work on Windows Message-ID: In-Reply-To: <5f2d9434b4ebb66131ea2fb9fbb62d6338af1294.1623674513.git.gitgitgadget@gmail.com> "Johannes Schindelin via GitGitGadget" writes: > Sadly, this construct is non-portable, according to > https://pubs.opengroup.org/onlinepubs/009695399/utilities/test.html. > However, it does not matter in practice because we still first look > whether `$GIT_EXEC_PREFIX` is string-identical to the first component of > `$PATH`. This will give us the expected result everywhere but in Git for > Windows, and Git for Windows' own Bash _does_ handle the `-ef` operator. OK. That's somewhat subtle and possibly brittle, but let's see how it goes. Will queue. Thanks.