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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=NZ1oPk+3y0/POhIX 4AmtjPX+LRGWQiLAd8kIuZwOq55hp9mcVEMblWZSL3Bl2uNl1TTU+gn384r7JQO8 OqqbAZJyJ+O4c7kqZf7m+hGDJXwwb6WwW5y2V6ZZ2/f6/DVF244lvtOP5x7bhV8+ h5xKU3nYzgCPLDBaQyE+KIqmBdw= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Tk59todKJZ4NfBAp9iqQ+r 1RWLo=; b=FE2wlui5XoVws+JDcSrGMh+D79kn5tN0+tdFxYRECUOi0a7qRu8EKi qbp34iTldwObuhYnZchq0eYRV28jz9V8pRCKLkMg/Ks2o3j0vWfY3cxOycbgResL 2EtPFq0VkadtKTkYRBu91sPInYafAJ4G+ZTbP6q/J7V0H5d3Xk1tA= 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=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:57C3424, H*f:sk:57C3424, H*MI:sk:57C3424, citizen X-HELO: stargate.mehconsulting.com Subject: Re: The Cygwin User Guide on path names To: cygwin AT cygwin DOT com References: <6a728c0c-81e8-b92b-8344-476d736e2306 AT cornell DOT edu> <803530117 DOT 20160824125116 AT yandex DOT ru> <57BF15C7 DOT 40104 AT tlinx DOT org> <1438370398 DOT 20160826055312 AT yandex DOT ru> <41bbca20-2b04-abba-4329-aefa7600cd13 AT mehconsulting DOT com> <1647564591 DOT 20160826153222 AT yandex DOT ru> <57C34240 DOT 7080100 AT tlinx DOT org> Newsgroups: gmane.os.cygwin From: Mark Hansen Message-ID: <7b349b2a-25c2-94be-40fa-211cb6ad3cdd@mehconsulting.com> Date: Sun, 28 Aug 2016 13:30:13 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <57C34240.7080100@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 8/28/2016 12:57 PM, Linda Walsh wrote: > Andrey Repin wrote: >> Also, @ Linda, the string escaping is done by the shell before passing >> arguments to the command, as I understand. >> If I'm starting an application not from shell, the app, being a good citizen, >> should not second-guess the arguments it is given. > --- > Absolutely. Don't get me wrong. I am NOT for removing > functionality or compatibility. If the Winpaths work for you > in your situation, I am all for keeping them working! No reason > to break previous compatibility needlessly. Way too often, developers > are throwing away previous compat. because its convenient, to make > it harder for the user to maintain & control their machine. > > I usually find the forward slashes easier to use because > of the quoting issue -- as I used ls for an example. Same would > apply to diff though. I.e. -- in bash, if you type > > > diff C:\tmp\file1 C:\tmp\file2 But I wouldn't expect this to work, because I know the backslashes are going to be interpreted by the shell. It's nothing to do with the application (diff in this case). To use a command shell, you need to know what that shell does. When using Cygwin, I use paths like C:/tmp/file1 or /cygdrive/c/tmp/file1. Never C:\tmp\file1 (unless I'm quoting/escaping the backslashes as needed). -- 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