X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,TW_SV,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Adam Dinwoodie <Adam.Dinwoodie@metaswitch.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
CC: Jochen Wiedmann <jochen.wiedmann@softwareag.com>
Subject: RE: CygWin SVN should identify as CygWin
Date: Tue, 7 Aug 2012 11:15:29 +0000
Deferred-Delivery: Tue, 7 Aug 2012 11:15:00 +0000
Message-ID: <CE9C056E12502146A72FD81290379E9A43657CCF@ENFIRHMBX1.datcon.co.uk>
References: <5020CEC7.3010703@softwareag.com> <5020E3CB.8070609@gmail.com> <5020E425.9080706@softwareag.com> <1975516369.20120807142759@mtu-net.ru> <5020EFDE.3090305@softwareag.com>
In-Reply-To: <5020EFDE.3090305@softwareag.com>
Reply-To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q77BFpjg011280

Jochen Wiedmann wrote:
>I didn't say, it behaves wrong. My point is that I need to know that I
>am using it, and not another svn, if all I know is "there's a svn binary
>in my path".

This isn't Subversion's responsibility; the problem is more general: how do you
tell if the version of awk, sed or vim are Cygwin ones or not (or ones compiled
containing a specific patch, or built on a particular day, or any other of a
myriad of different things that could make a difference to an executable's
behaviour)?

The general problem has a general solution: check your path and actually
determine which executable you're using. As marco pointed out, use `which` from
a Cygwin shell; from a Windows cmd shell the equivalent command is `where`:

    C:\>where svn
    C:\Program Files\CollabNet\Subversion Client\svn.exe
    C:\Program Files\TortoiseSVN\bin\svn.exe

PS: Please don't reply directly to me; I'm already on the mailing list and
don't need a second copy. The same goes for everyone else who's replying to
you, particularly if their Reply-To is the mailing list, unless they explicitly
request otherwise, per <http://cygwin.com/problems.html>.

I'm Cc'ing you explicitly as it's not clear you're signed up to this mailing
list and will receive emails sent solely to it.

--
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


