From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111956 invoked by alias); 13 Nov 2016 22:19:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111935 invoked by uid 89); 13 Nov 2016 22:19:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Space, (unknown), Command-line, H*r:ip*10.194.75.71 X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 Nov 2016 22:19:18 +0000 Received: by mail-wm0-f52.google.com with SMTP id c184so9414654wmd.0 for ; Sun, 13 Nov 2016 14:19:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ilGsIiAH+kaBrAZ8+24lLCsuAbtn2cQdnqfZlqh/h1c=; b=Y+fvpzcIicuPkkGik5AHslTLLPUWVWaHLWHyd5724a7/Z3zjVZPjn/iUB3zGbV26XY 5Qb0rgSmaU7WK/sTOwV68wlBN+vS0EaFoAMMPKK0UPs/M78Xwp3pNBuRQWbAr2a3/BvI sxPjN5LWNfB0Cho0uKgvghMeeMR2nDWB0bjdvaWX1gxryzc+GZGBVSQ0N4PymDEGYCCx M3ZCgS7i+2ecUIEDoVQDZhBewauinm0PkEcSIOynj3rHpU776zFO8Y4fHMc0B2JcGsM8 WPwUDoDW5nNnh7We0zT1I6u7EI0aZt4hyikl388eQBsnEolLdXvoifOsjkxXf1FKtw8A rw1A== X-Gm-Message-State: ABUngveWVTZoeyM/qX0gqDvBIfVJz8YzjgVpxmlWMPkvB/jgcqXVE9AGa9K8atZNz6LzJtthAXYUz040q0/bZw== X-Received: by 10.28.35.205 with SMTP id j196mr7979715wmj.62.1479075556693; Sun, 13 Nov 2016 14:19:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.75.71 with HTTP; Sun, 13 Nov 2016 14:19:16 -0800 (PST) From: OwN-3m-All Date: Sun, 13 Nov 2016 23:17:00 -0000 Message-ID: Subject: 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 X-SW-Source: 2016-11/txt/msg00173.txt.bz2 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