From: Junio C Hamano Date: Tue, 15 Jun 2021 02:33:58 GMT Subject: Re: [PATCH 1/2] subtree: fix the GIT_EXEC_PATH sanity check to work on Windows Message-ID: In-Reply-To: Johannes Schindelin writes: >> `test FILE1 -ef FILE2` checks wether the inode is the same. And it's >> POSIX, so I'm assuming that it's sufficiently portable, though I >> haven't actually tested whether things other than Bash implement it. > > It's not POSIX. From > https://pubs.opengroup.org/onlinepubs/009695399/utilities/test.html: > > Some additional primaries newly invented or from the KornShell > appeared in an early proposal as part of the conditional command > ([[]]): s1 > s2, s1 < s2, str = pattern, str != pattern, > f1 -nt f2, f1 -ot f2, and f1 -ef f2. > > Having said that, it appears that Bash implements it (what non-standard > behavior _doesn't_ it implement ;-)) > > And since Git for Windows ships with Bash, we can actually use it! So,... is contrib/subtree for Windows only?