From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81533 invoked by alias); 15 Nov 2016 03:38:51 -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 15795 invoked by uid 89); 15 Nov 2016 03:37:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=sk:briani, sk:BrianI, U*Brian.Inglis, sk:Brian.I X-HELO: mail-wm0-f43.google.com Received: from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Nov 2016 03:36:56 +0000 Received: by mail-wm0-f43.google.com with SMTP id f82so140140212wmf.1 for ; Mon, 14 Nov 2016 19:36:56 -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:in-reply-to:references:from:date :message-id:subject:to; bh=zWQbyje6/PH9wI56XuFGqOYphnTu6A57h+gnl/Ku4Vo=; b=D5Gy6Ap7ZXIgX4p7/g0amcduuKemaRAks4a9coRnbM8QwccsxJopfB9O7r7/mhEIQU OUN0Om+WuGXnYI3p9Ls9bdGO8/Qqt7ZlqHNr2mPaWkqTTuw89GLvUgGfYih2WTUbdgBm dBEPoRkp3upCSyRBllZ4imBZJ/OGleTnvL3mQCn6AeylQdgDxdZBhR8bTxprlm7I7245 gtMI0cNdRy5mssJoWHDuDlwYgJnytlwEgi5B2KMGNwT04HA3A9eeLHgNDsk1An++ajeN 80E7kIwi5ZzKfYa65HDkQ1fJmtKQrkcanI4YtnPqFql3puuLKOJoexQjJYewMcosB+Pz chZg== X-Gm-Message-State: ABUngvfWt/RiIkSk5YRtWsDfj0CJCitiYsZ1UMuNIPluPkE0BJiCbHerYi3sKbbhF6zOUV7WffPJ7hlOWseXKA== X-Received: by 10.194.127.104 with SMTP id nf8mr21684630wjb.39.1479181013968; Mon, 14 Nov 2016 19:36:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.75.71 with HTTP; Mon, 14 Nov 2016 19:36:53 -0800 (PST) In-Reply-To: <85fb010a-4fb5-1455-af6b-32e95048964c@SystematicSw.ab.ca> References: <85fb010a-4fb5-1455-af6b-32e95048964c@SystematicSw.ab.ca> From: OwN-3m-All Date: Tue, 15 Nov 2016 08:24:00 -0000 Message-ID: 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 X-SW-Source: 2016-11/txt/msg00181.txt.bz2 Thanks guys. That was it. I decided to remove the trailing slash for my purposes. set WD=%~dp0 set WD=%WD:~0,-1% It's working now! On Mon, Nov 14, 2016 at 12:23 PM, Brian Inglis wrote: > On 2016-11-14 07:43, Gerrit Haase wrote: >> >> 2016-11-13 23:19 GMT+01:00 OwN-3m-All wrote: >>> >>> 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. > > > I'd go further - it is strongly recommended that you use only a subset > of printable ASCII characters to avoid problems with Windows OEM and > NLS code pages, and Cygwin mapping of some characters to UTF-16 user > defined supplementary characters, understood only by Cygwin internals, > for POSIX compatibility. > So disallow names with anything disallowed by Windows: > "*/:<>?\| > or outside the [!-~] range leaving [!#-)+-.0-9;=@-[\]-{}~] > It would also be sensible to disallow anything interpreted by shells, > including cmd, or programs, to avoid issues: > !#$%&'();[]`{} > reducing the set to [+-.0-9=@-Z^_a-z~] i.e. > +,-.=@^_~ > plus digits and letters, to maintain interoperability without issues. > Leading -.@~ should be disallowed as they have special meaning, and > trailing ~ is questionable as it is often used for backup files, > removed by cleanup scripts, so you might also want to disallow these. > > -- > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada > > > -- > 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 > -- 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