Re: [RFC PATCH] git-sh-setup: Use "cd" option, not /bin/pwd, for symlinked work tree
- From
Marcel M. Cary <marcel@oak.homeunix.org>
- Date
- Feb 11, 2009, 14:44 UTC
- Message-ID
- <4992E459.1060401@oak.homeunix.org>
- In-Reply-To
- <alpine.DEB.1.00.0902082154450.10279@pacific.mpi-cbg.de>
Johannes Schindelin wrote:
Show 14 quoted lines
> On Sun, 8 Feb 2009, Marcel M. Cary wrote: >> Johannes Schindelin wrote: >>> On Fri, 6 Feb 2009, Marcel M. Cary wrote: >>>> While the "-P" option may be slightly less commonly supported than >>>> /bin/pwd, >>> Does this not suggest that your patch should at least fall back to >>> using /bin/pwd when it was detected that "cd -P" does not work? >> Having the "cd -P" strategy fall back to /bin/pwd negates most of the >> value I saw in using the simpler strategy. >> >> I haven't found cases where "cd -P" is more correct. > > Actually, it was not clear for me how much you researched the portability > of "cd -P".
I have not. I've seen only that it's POSIX, is on BSD and Linux, and was suggested by Junio.
> As long as it is not proven that your patch keeps working setups working, > I think you'll have to put in a bit more effort, research it, and then put > the discussion into the commit message.
Actually, since I haven't heard any continued interest in following up with the suggestion to use "cd -P", I don't see much benefit myself, and there is concern about it not being compatible enough, I'm content to just table this.
I agree that keeping working setups working is important, and it seems like a major project to research portability of "cd -P" on a list of platforms that I'm guessing I'd have to collect myself.
Marcel