X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=R/x6Q4qDEPbhHJ7YLCo3iTE/GfoeaJAKab9VNLZjs1FcPBz0sib+K leVNBbWXpPvHVxNVLGadOTVj7XDZFjSAlFUhbLlskngHcomvbCNeKNRUL+wc7n34 zmS7jh20dsRyJ6mk7cBFVcPoI4A89XZe++KV9FcR6Ewa+QOCnjapR4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=MMmdfmZyMXAIkCdHUxhCanoo/MA=; b=S+T/9/yE2Cz+o6gNTVrvhUurZbow 2bJ9o6SZPI2svNFluppOsu40kA9Xp61KEXprttp/6mekREq+FR/hQpwPwJ1vX8C4 5JIaJSr0wIf1J+bEICOTU3ody7KSdgtGkwP69TwDayDG0FmWNPb6Fj/SCDJnoYCs c/3cQZzDJSKzjF4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Fri, 23 Jan 2015 16:13:34 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Subversion (svn.exe) prepending current directory to target path when using Windows path format. Message-ID: <20150123151334.GB13309@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <782f375a51429d892d4053efb93f91c8 AT server1 DOT deragon DOT biz> <54C14D26 DOT 7020304 AT acm DOT org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --T4sUOijqQbZv57TR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 23 09:13, Hans Deragon wrote: > On 2015-01-22 14:19, David Rothenberger wrote: >=20 > >Hans Deragon wrote: > > > >>When I run Cygwin subversion command (svn) with a Windows formatted path > >>(C:dir1dir2...), for some reason it prepends the current directory > >>(${PWD}) in Cygwin format (/cygdrive/c/...) to the target path in > >>Windows format, causing the command to fail. Using a target path > >>expressed in Cygwin format works fine. > > > >I am the maintainer of Subversion for Cygwin. I do not have the time or > >interest to try to patch this in Subversion. In general, I don't feel > >the Cygwin tools have a responsibility to support Windows formatted path= s. >=20 > I understand. Thank you for your reply, I will do without. I am just > curious; is the problem really with svn? I thought that the Cygwin librar= ies > are responsible for converting Windows path to Cygwin paths. I am surpris= ed > that svn has a different behavior depending of the path format; it sugges= ts > that some code of svn receives the Windows path instead of a converted > Cygwin path, thus explaining the different behavior. >=20 > I am not at all a Cygwin expert and I am just speculating. What you're observing is how the application itself handles paths incoming from the command line. An innocent POSIX application might be inclined to check for a leading slash and if it's missing, treat the path as relative. The best way forward is to use POSIX path throughout and to convert incoming Windows paths from native tools using cygpath(1) as described in https://cygwin.com/cygwin-ug-net/using-utils.html#cygpath HTH, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --T4sUOijqQbZv57TR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUwmUeAAoJEPU2Bp2uRE+gPy0QAIS1JygQ0DcUCfu62T+EEOBc 8ZEHkO+tx+MyGw7Fm00aViGTHrpy6H5lmTUMdCNQeB5WiZWkR52XWSvGSvNzvXfb SWccKGOyFQF4ZETllj+Qdeu0bCmHvT9g4D26ggbhRUsPkJH/sd2yrmBuTEjqTz/p jCGJqSfdMSt31joV/L78RhJJQGZY4/oWigdTZ7ZcySgnExzwuUKSndH2IqHqRRiw GH01GYmsM8buoAA8WOwZs8Ux/Y7FCuH4gs8nS8MMwq06Igzr6Epll680wmxWzQMS SvTv6Rjcyw5MiCF8FAza4F4NvbYJuCX73Is1rFBq/bcj37bC2z1lU++FwHcNBkCR urZFDjN4scoJDqnR3kgqKSwLpcfxn9xKu0/YMwefJjq75WpIRf0kE5OOFRZx3YZX 4LCxnW6yffdBvU4PcTBkaOu3GoxxxdtCmHs6RRVLVqG7+3ki7Fw1lHd4XJhBUcC3 eLp35mLWYhPC7xt+y7rNZLTVlS/cj4L9gqCjEakSN2SEKL9BmIRWNXTcdyilWp25 lV+5DILiZuoXtUbKSO75FZyobZ7l/itR9Zh3k/z9foo353fhoqHPgYjrmzVE6r/J x2g9OMJcfZA7Mnw7c0j4Ma+zhVFI13B6HXEMlcyvxn8V050Jq/IeBc1yrzgEqUn0 B7UMKQ7Aje17H/4WBs73 =P+Tq -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--