delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/15/08:20:43

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=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 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,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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <242162804.20161115161751@yandex.ru>
To: OwN-3m-All <own3mall AT gmail DOT com>, cygwin AT cygwin DOT 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 AT mail DOT gmail DOT com> <CA+Fg1xZFpb5uBbkP4KQxsZUvkjQETY4VjR0Y4k+Oe_D5DE0u9w AT mail DOT gmail DOT com> <85fb010a-4fb5-1455-af6b-32e95048964c AT SystematicSw DOT ab DOT ca> <CAK0ZC5X=jTLPhEPqJ=fJ30V=gcwxjD+xno=6bHcfDZkzQXSVjw AT mail DOT gmail DOT com>
MIME-Version: 1.0
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

- Raw text -


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