delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/25/23:05:53

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=v23OCYf6XM1xmSLD
kVKEBNm+NIZ0Jnf6sI6EE2Q6xSRmJBkZStkB5F40q+yUlafJan9Tl9dyyMU1ZXP8
MbgijM+QtG8zho9xF0ErAIDuTCwdjoffRsRRelcdH/JpRHDt9JcAxZcgGCqUfZGy
JzzU2JfOqzZbz2yIYzMbIQAj2vY=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=uT6Ei5+4SiD8th5Ap23Xxu
AUWUc=; b=HpHotAacVqHxZuzwvelHa0uFNvycIhb8fp66EwkrHh8XwQ/E6ud4jA
KEwCprzgYghR0rF/lt8F2McuGbU8M90BVTEEqWSh91mLcn/Ev5ZeQzCFHVMFsKe4
GQYjrKEjA3DN/iw1B1mxecAWtpmwhMc7vZTkXBtMS0zu2845geI+k=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, Linda, walsh, Walsh
X-HELO: forward2o.cmail.yandex.net
Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Fri, 26 Aug 2016 05:53:12 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1438370398.20160826055312@yandex.ru>
To: Linda Walsh <cygwin AT tlinx DOT org>, cygwin AT cygwin DOT com
Subject: Re: The Cygwin User Guide on path names
In-Reply-To: <57BF15C7.40104@tlinx.org>
References: <6a728c0c-81e8-b92b-8344-476d736e2306 AT cornell DOT edu> <803530117 DOT 20160824125116 AT yandex DOT ru> <57BF15C7 DOT 40104 AT tlinx DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u7Q35mcK013644

Greetings, Linda Walsh!

> Andrey Repin wrote:
>> Greetings, Ken Brown!
>> 
>>> The documentation also says, "The usage of Win32 paths, though possible,
>>> is deprecated...."  I wonder if this should be strengthened to say 
>>> something like, "The usage of Win32 paths, though possible, is strongly 
>>> deprecated and may be removed in a future release of Cygwin."
>> 
>> That would be the day Cygwin die for me.
>> -- 
>> With best regards, Andrey Repin
>> Wednesday, August 24, 2016 12:50:55
>> Sorry for my terrible english...
> ---

> Curious -- but why?  How do you make use of win32 pathnames
> ( "C:\bin" versus "/bin" or "/c/bin" or "/cygdrive/c/bin" )
> depending on how your cygwin is configured).

I make use of win32 paths directly.
diff and grep are the most used tools.

> I'm wondering if maybe there is a misunderstanding?

I don't think so.

> For the most part -- many cygwin apps may not work 
> correctly if given a win32 path in the same place you'd
> put a *nix path due to the backslashes being turned into
> quote sequences.

That's too bad for such poor apps.

> I mean, you can't type:

>> ls C:\bin 
>   (instead of )
>> ls /c/bin

I don't really need LS, though… Not with a file list readily present in front
of me.
Though I sometimes use it to get a listing of current directory in a specific
format into a file or clipboard.

> and have it work, since the first would
> turn into: "ls C:bin" (or if the \b is taken
> as an escape sequence, it rings the bell, so it
> could be translated as "ls C:\008in".  So I'm wondering
> where you know the backslash form would always work and
> wouldn't be mangled "somewhere"...?  (If you see what
> I mean?)

Some apps (like diff/patch or grep) just work.
Other require a workaround (i.e. redirection in case of pngcrush).


-- 
With best regards,
Andrey Repin
Friday, August 26, 2016 05:48:42

Sorry for my terrible english...

- Raw text -


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