| delorie.com/archives/browse.cgi | search |
| 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=AZ/PvkHnV3fDpC58 | |
| pPzIsxun8mBN0m0b1vheAnszOYldlFJa+6ixTvC3g7bDjn5pg4DQzdJACPVQCXEw | |
| lPRjDr98uhI4Qo/AH6ez5hpNo7VwFyGpdtHOL1VKMpmH1ztGbA7RyFK5MLYYD0iJ | |
| 6Z0tMYiuUTqa2oEPhfPpl+JugnI= | |
| 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=0lxd6vxr+V0Hdvj4Q7PQ4H | |
| 8YUko=; b=ZETGicOEmGD0gnIuzkI1ZTHTDBrBPOzfGxPX5jwrIEM4qU24UvBQrp | |
| OrvXXS0A3zKn4jdTY/u3smbMDsYS9NamxhS+xGEeRrYFoWrLclwUjaadRtUgTNXM | |
| xHwEB44hma4QPsKAIlNkP9BZfEYj9JAbCij3gSi9TUAiEmrdGy0eA= | |
| 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=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
| X-HELO: | smtp.ht-systems.ru |
| Date: | Mon, 5 Oct 2015 17:21:31 +0300 |
| From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
| Reply-To: | cygwin AT cygwin DOT com |
| Message-ID: | <1052072538.20151005172131@yandex.ru> |
| To: | Poor Yorick <com DOT cygwin DOT cygwin AT pooryorick DOT com>, cygwin AT cygwin DOT com |
| Subject: | Re: cygpath and partial normalization of trailing /. |
| In-Reply-To: | <caaf01d0b0a80e077f56abed63864729@webmail.webfaction.com> |
| References: | <caaf01d0b0a80e077f56abed63864729 AT webmail DOT webfaction DOT com> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
Greetings, Poor Yorick!
> Currently, in a sh shell,
> cygpath 'c:\windows'
> returns
> /cygdrive/c/windows
> and
> cygpath 'c:\windows\.'
> returns
> /cygdrive/c/windows/
> . With the -m switch, the same pattern is followed, and in the case of
> a
> trailing, \. sequence, the dot is removed but the backslash is retained.
> This
> led to a bug (https://sourceforge.net/p/tkimg/bugs/84/) in a build
> process
> where the autoconf script looked something like this:
> TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"])
cygpath is not a normalization tool. Use readlink, if you need normalized
paths.
> Because of the trailing backslash in the output of cygpath, the final
> double
> quote ended up getting escaped.
> Rather than normalizing half of it away and leaving half of it, Wouldn't
> it be
> better to either not normalize the trailing slash-dot sequence at all,
> or to
> completely normalize it away? If that which is delimited is removed, it
> would
> seem to make sense to removed the delimiter as well.
> The case that the incoming pathname already has a trailing delimiter is
> one
> that I think is already recognized and differentiated.
--
With best regards,
Andrey Repin
Monday, October 5, 2015 17:20:20
Sorry for my terrible english...
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |