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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com Message-ID: <242162804.20161115161751@yandex.ru> To: OwN-3m-All , cygwin AT cygwin DOT com Subject: Re: Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed In-Reply-To: References: <85fb010a-4fb5-1455-af6b-32e95048964c AT SystematicSw DOT ab DOT ca> 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