public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: OwN-3m-All <own3mall@gmail.com>
To: cygwin@cygwin.com
Subject: Cygwin Setup Command-line Arguments - Paths with a Space Incorrectly Parsed
Date: Sun, 13 Nov 2016 23:17:00 -0000	[thread overview]
Message-ID: <CAK0ZC5Uj8Z_uf_1nKUegt84Qn+OHiwsMVC_SO8AjFrrpUCQv1g@mail.gmail.com> (raw)

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

             reply	other threads:[~2016-11-13 22:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13 23:17 OwN-3m-All [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK0ZC5Uj8Z_uf_1nKUegt84Qn+OHiwsMVC_SO8AjFrrpUCQv1g@mail.gmail.com \
    --to=own3mall@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).