delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/07/11:09:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-id: <50212F68.4070502@cygwin.com>
Date: Tue, 07 Aug 2012 11:08:24 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: CygWin SVN should identify as CygWin
References: <5020CEC7 DOT 3010703 AT softwareag DOT com> <5020E3CB DOT 8070609 AT gmail DOT com> <5020E425 DOT 9080706 AT softwareag DOT com> <1975516369 DOT 20120807142759 AT mtu-net DOT ru> <5020EFDE DOT 3090305 AT softwareag DOT com> <CE9C056E12502146A72FD81290379E9A43657CCF AT ENFIRHMBX1 DOT datcon DOT co DOT uk> <5021233D DOT 1010305 AT softwareag DOT com>
In-reply-to: <5021233D.1010305@softwareag.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 8/7/2012 10:16 AM, Jochen Wiedmann wrote:
> And, besides, your proposed solution won't work: I could, of course,
> use "which", or "where" to deduce the location of "svn", but what would
> that tell me. Assuming, I get "/usr/bin/svn", then I'd know that "which"
> is a CygWin binary (because it emits a CygWin path), but what's got that
> to do with svn? The fact that it resides in the CygWin bin directory
> doesn't mean it is also a CygWin binary.

If you need something more conclusive than just where 'svn' lives, you can
use 'cygcheck' on the path that 'which' returns.  Something like
'cygcheck $(which svn) | grep cygwin1.dll' should be sufficient.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019