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: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 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=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: References: From: Gerrit Haase Date: Mon, 14 Nov 2016 15:43:31 +0100 Message-ID: Subject: Re: Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed To: cygwin AT cygwin DOT 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