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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=yDDNvQN
	rLzxaifJKm/zZRM7QMo4eTW5fdgi9LyYF8F0WqUzKHUS3NsgrsiNH1tEusDj5L2P
	qn92VMTrOaprJzNq/z/W4w7Oq7UivT+P/HV4+koeinjNrJ26cOoos6iyYVl5YOQ4
	5zF1KqsuEI2eHRC2cJEgINCueeIbVnR1n3qQ=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; s=default; bh=2HyDz1eWuqX21
	6O4lvKR4fiQAEI=; b=ckJkGrzyPcNnQfn7Ic/8NfDMnJ8dM8P6zluRXfPz4OYN5
	IjDGQfuJKBAsxp9MOPiLMPaIc9EH6fjbvRn819YI8sdshTIpSoQONIV+48wS6vm0
	oWcW2Q31VlBlMgIZngVNePNe9rUmE3hnmFTgrFVuSosyQdPYK77uF8InFIZXvQ=
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=0.5 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=own3mall, OwN-3m-All, own-3m-all, OwN3mAll
X-HELO: mail-wm0-f54.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to;        bh=GjCARQDtRqMidEj/Ow6zMsyctuYfXgK1fSalCUXKmBM=;        b=EU4x7MEa1tYkDeIlqiAQefGNbC+IEvJRXrbYEG6McZlIpvX7ZNiozg10FWuGA1GNKn         arVh34FOfIarfNUpBcOM/cSCpAgHOIt4U0s2rEKY/oOrWMlhD4lqvy1E+8KLlAORESuJ         33MbCHC2sWnq2iFOmUYqpZc/a3TSVihoL3nmSqsGtFpIM2OmDyp8791LEIqTxqfIjKQz         ScZ7l3Xrumxi4uDZk32sQHqbdUK4oq+Vb/UU14QxGG1PMglfA20TPmG2GxXXYiUndyWu         TBxUTfso1ddU6EsMc0ica9awk+awWyLkKUMQXIV+vbDDwqH9K1UoiSqEjNymQIfrIU5i         wf/Q==
X-Gm-Message-State: ABUngvfWHS94jkG4fQQtOD+akPuIfSWF0LJ5xEtDgPIglon+7ixEuQDW1HmBC1RKirfKxY4w8EXnYc2tandKHA==
X-Received: by 10.194.119.68 with SMTP id ks4mr17261514wjb.171.1479134651727; Mon, 14 Nov 2016 06:44:11 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CAK0ZC5Uj8Z_uf_1nKUegt84Qn+OHiwsMVC_SO8AjFrrpUCQv1g@mail.gmail.com>
References: <CAK0ZC5Uj8Z_uf_1nKUegt84Qn+OHiwsMVC_SO8AjFrrpUCQv1g@mail.gmail.com>
From: Gerrit Haase <gerrit.haase@gmail.com>
Date: Mon, 14 Nov 2016 15:43:31 +0100
Message-ID: <CA+Fg1xZFpb5uBbkP4KQxsZUvkjQETY4VjR0Y4k+Oe_D5DE0u9w@mail.gmail.com>
Subject: Re: Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

2016-11-13 23:19 GMT+01:00 OwN-3m-All wrote:
> cd "C:\test\with space"
> set WD=%~dp0
> echo "%WD%cygTemp"
> "setup-x86_64.exe" --root "%WD%" --local-package-dir "%WD%cygTemp"
> pause
>

The problem is this trailing backslash in the directory name.

D:\temp\Neuer Ordner\cygwinpkg>setup_script.bat

D:\temp\Neuer Ordner\cygwinpkg>set WD=D:\temp\Neuer Ordner\cygwinpkg\

D:\temp\Neuer Ordner\cygwinpkg>echo "D:\temp\Neuer Ordner\cygwinpkg\"
"D:\temp\Neuer Ordner\cygwinpkg\"

D:\temp\Neuer Ordner\cygwinpkg>"setup-x86_64.exe" --root
"D:\temp\Neuer Ordner\cygwinpkg\" --local-package-dir "D:\temp\Neuer
Ordner\cygwinpkg\"


Try adding a dot:

set WD=%~dp0
echo "%WD%."
"setup-x86_64.exe" --root "%WD%." --local-package-dir "%WD%."
pause


> I'd like to automate Cygwin installation, but I don't want to rule out
> the possibility that a path with a space will not be used.

You'll get a warning from Setup:  it is strongly recommended, to use a
root path without spaces.


> Please let me know if this is possible.

I don't know, never tried, I always used C:\cygwin as root.

Regards,
Gerrit

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

