public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed
@ 2016-11-13 23:17 OwN-3m-All
  2016-11-14 19:23 ` Gerrit Haase
  0 siblings, 1 reply; 6+ messages in thread
From: OwN-3m-All @ 2016-11-13 23:17 UTC (permalink / raw)
  To: cygwin

Is there a way to pass in paths that contain a space in the --root and
--local-package-dir Cygwin command-line arguments?  Everything I've
tried doesn't work.

Here's a sample batch script to reproduce the issue (create a
directory with a space in it, copy Cygwin setup exe, and then save
batch script into this directory):

cd "C:\test\with space"
set WD=%~dp0
echo "%WD%cygTemp"
"setup-x86_64.exe" --root "%WD%" --local-package-dir "%WD%cygTemp"
pause

If I double quote the path as expected for path variables that may
contain a space in batch, Cygwin incorrectly parses the above
command-line arguments.  I know it is NOT recommended to install
Cygwin with a path that contains spaces, but according to the
documentation, "Cygwin does support spaces in filenames and paths."
But, it doesn't appear to when passing in parameters to the setup?

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.

Please let me know if this is possible.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-15 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-13 23:17 Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed OwN-3m-All
2016-11-14 19:23 ` Gerrit Haase
2016-11-15  3:38   ` Gerrit Haase
2016-11-15  7:33   ` Brian Inglis
2016-11-15  8:24     ` OwN-3m-All
2016-11-15 18:56       ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).