delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/02/12:06:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_SPAMHAUS_DROP,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
X-EIP: [IgWu+cFE4+PimnXUi0CQGXKxDHTp0EmX]
Message-ID: <BLU0-SMTP253104C81DB8C8B8DA0C87CCE220@phx.gbl>
Date: Wed, 2 Jan 2013 18:04:56 +0100
From: Aaron Schneider <notstop2 AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygpath not working properly when the windows path argument ends in backslash
References: <BLU0-SMTP96D57229286DCC34ABBC89CE220 AT phx DOT gbl> <CA+sc5mmgs8FLFD+ZQhu-y51EN_wUwQCc0uhb7oV1EOEg3ijsPA AT mail DOT gmail DOT com>
In-Reply-To: <CA+sc5mmgs8FLFD+ZQhu-y51EN_wUwQCc0uhb7oV1EOEg3ijsPA@mail.gmail.com>
X-IsSubscribed: yes
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

On 02/01/2013 2:17, Earnie Boyd wrote:
>> cygpath.exe -a "c:\Users\All Users\"
>>>
>>
>> Probably this trailing backslash is interpreted by shell, what to do about
>> this?
>
> Not probably, it is exactly that.
>
> cygpath.exe -a "C:\\Users\\All Users\\"

I was incorrectly quoting the path. This works:

$ cygpath.exe -a 'c:\Users\All Users\'
/cygdrive/c/Users/All Users/

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