delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/11/26/17:55:07

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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=V83EGpp
QmlAdcmgNtYK2F5s4BTGohXzl/pIwTQV4IFs1U/IYGPJvZzXtXN6yz5khDpUI3+R
q/eLEbWQ+1nQ0lcHeS+f6r7ZA90eC0RE5zEyOiOTUwIq+NFhx+dblq5OYZsBN5s9
SR8aeqKMPSZLpNyPbKPpktnw7U1CWy+D2MTk=
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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=1kYCgds1gvd4c
sEcaXxQE2rzTCM=; b=s9ARpexdFGI8JgY2dwni/H6Ow1GJKROVXoZHprgOimxbi
AiGCW7Eq07FtHAGfrIT6mmpp6xG4YwjHbHmydcrTpTGqC5EmabSDCkaJivSCPlsx
Fub4U1TuphJZt90UOUKSiD1v1x8z3ru+x6TQALvDCVxiXCMqxInVZqgi3H/5TM=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=penny, Steven, Penny
X-HELO: mail-ua1-f45.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dinwoodie.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=O1aIyRGqChl72bmUHe5Fs/RBWV1/1n97uaQTk8lhr7w=; b=Sec8bP/Xe1gop/rsf5SevJ3ZNLTULcu10oF0zP40tA/wCoO9H52awFNZuJpjdwP2xX duESvoX5PdgNBoKhGUIjgZzJ4iIjqxNrBoGSyAZbCQnM/4Nww+y37YxjC1tQa4M4lSgO zhCwcUNSv//k9GmDu7kLmdB10ZzYF9h3gIdmQ=
MIME-Version: 1.0
References: <5bf10195 DOT 1c69fb81 DOT 27494 DOT eed4 AT mx DOT google DOT com>
In-Reply-To: <5bf10195.1c69fb81.27494.eed4@mx.google.com>
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
Date: Mon, 26 Nov 2018 22:54:14 +0000
Message-ID: <CA+kUOamKzp=jjKc1OLGo1vmepoee5ABwgUpYJF9Lq1CJjOBy9Q@mail.gmail.com>
Subject: Re: Cygwin Git with Windows paths
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Sun, 18 Nov 2018 at 06:07, Steven Penny wrote:
>
> Cygwin Git can clone with Unix form paths:
>
>     $ git clone git://github.com/benhoyt/goawk /tmp/goawk
>     Cloning into '/tmp/goawk'...
>     remote: Enumerating objects: 330, done.
>
> However it fails with Windows form:
>
>     $ git clone git://github.com/benhoyt/goawk 'C:\cygwin64\tmp\goawk'
>     Cloning into 'C:\cygwin64\tmp\goawk'...
>     fatal: Invalid path '/home/Steven/C:\cygwin64\tmp\goawk': No such file or
>     directory
>
> and mixed form:
>
>     $ git clone git://github.com/benhoyt/goawk C:/cygwin64/tmp/goawk
>     fatal: Invalid path '/home/Steven/C:/cygwin64': No such file or directory
>
> Note that other Cygwin programs work fine with these forms:
>
>     $ ls 'C:\cygwin64'
>     bin         Cygwin.ico           dev  home  sbin  usr
>     Cygwin.bat  Cygwin-Terminal.ico  etc  lib   tmp   var
>
> This causes problems for any non-Cygwin tools that might call Git:
>
> http://github.com/golang/go/issues/23155

Personally, I don't see this as a bug; AIUI using Windows style paths
isn't something that is supported in general in Cygwin, even if it's
something that works in some circumstances. I acknowledge that this
causes problems for non-Cygwin tools using Cygwin Git, but the
solution there is to either use Cygwin aware/native versions of those
tools, or to use non-Cygwin versions of Git.

In particular, I'm wary of fixing this set of interop problem
introducing some other problem; I'd prefer Cygwin tools to fail to
handle Windows paths entirely than the current situation where "c:"
refers to a file of that exact name in the current directory, and
"c:\" sometimes refers to a completely different directory, when on
*nix systems in general both would refer to files in the current
directory.

I see you've raised this on the Git mailing list as well, and if the
upstream Git package starts to handle such paths, I'll take the
relevant patches. However since I don't consider this a bug, I'm not
going to raise it myself.

Adam

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