X-Recipient: archive-cygwin@delorie.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=ehzvkHCiFP3rDsr0
	XSWxfeEf7L7TZvR5mgQ3JhAtOEY7MZJow0xD9M6OpEdyZnDrbMH1xcjplu2pgn+y
	bxf2SEkiHPfjcc0acVMDegRhcfiKuaEOnDnOinsmd4642u5IMpeNpNwcMxdZOYrX
	5Iv/B9CcqB6jUY2+PwCxtWlMEks=
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=tJ8wkgRPCN9N53OTop0s+D
	rgcZA=; b=mwQbbtpOc/fgf31Nys2FdZUFBa9+Ah7J8cjbVMwgweGIKYqlOuAStD
	r7l9YMzbkGy0mbUhQOWpofEng0zll80ai/czz2fRoRKtV1w5INaHW/BT4+zCiIQ6
	89Til7LaU43sJW71ap60a2zXYmQWH9E4LJYdvbMhn8rAYAotIQbfA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, H*MI:sk:Fg1xZFp, H*MI:sk:Oe_D5DE, UD:yandex.ru
X-HELO: forward1j.cmail.yandex.net
Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Tue, 15 Nov 2016 16:17:51 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <242162804.20161115161751@yandex.ru>
To: OwN-3m-All <own3mall@gmail.com>, cygwin@cygwin.com
Subject: Re: Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed
In-Reply-To: <CAK0ZC5X=jTLPhEPqJ=fJ30V=gcwxjD+xno=6bHcfDZkzQXSVjw@mail.gmail.com>
References: <CAK0ZC5Uj8Z_uf_1nKUegt84Qn+OHiwsMVC_SO8AjFrrpUCQv1g@mail.gmail.com>   <CA+Fg1xZFpb5uBbkP4KQxsZUvkjQETY4VjR0Y4k+Oe_D5DE0u9w@mail.gmail.com>  <85fb010a-4fb5-1455-af6b-32e95048964c@SystematicSw.ab.ca>  <CAK0ZC5X=jTLPhEPqJ=fJ30V=gcwxjD+xno=6bHcfDZkzQXSVjw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, OwN-3m-All!

> Thanks guys.  That was it.  I decided to remove the trailing slash for
> my purposes.

> set WD=%~dp0
> set WD=%WD:~0,-1%

> It's working now!

Alternatively, you could translate backslashes to regular slashes. Should work
too.

SETLOCAL ENABLEEXTENSIONS
SET CWD=%CD:\=/%

P.S.
This list is in "no top posting, please, thank you" mode.


-- 
With best regards,
Andrey Repin
Tuesday, November 15, 2016 16:13:53

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

