Re: [BUG] having 'plink' anywhere in the GIT_SSH environment variables sets putty = true
- From
Jeff King <peff@peff.net>
- Date
- Apr 22, 2015, 21:29 UTC
- Message-ID
- <20150422212904.GA32043@peff.net>
- In-Reply-To
- <20150422211915.GB827497@vauxhall.crustytoothpaste.net>
On Wed, Apr 22, 2015 at 09:19:15PM +0000, brian m. carlson wrote:
Show 9 quoted lines
> > Note that I don't think just switching the strcasestr to look for > > "plink.exe" is right. For one thing, it just punts on the problem (it > > can still happen, it's just less likely to trigger). But for another, > > you can have plink (without ".exe") on Linux systems. > > Perhaps it would be worthwhile to check instead if the text "plink" is > the beginning of string or is preceded by a path separator. That would > give us a bit more confidence that the user is looking for plink, but > would still allow people to use "plink-0.63" if they like.
Yeah, I think that is a reasonable approach. Note that it needs to handle the "tortoiseplink" case from below, too (you can still use your strategy, you just need to look for either string).
-Peff