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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=n8+ld10 M5stgjI+yhoHdPxGxcvN21N4scmjFzRT/eMWxpoCb6l6aFEhc0cY+fGL2Wp2elqz 476YN0bnALtITBX4IM/WFFG6earoZFz8J7kVVMr60i6C/dkjKp3F361hxxzIgWsL Wel5ZtieYtfB30Dap8EKn0wK+bQc+MEgEZD4= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=YU5pNfcYeUtai ecNhI8p1xlSTfU=; b=JzT4YLVUcrrvGOsi6XxLDtSCP++kNdYt2QkOC7DyzDfdv BI5LhW5uaY9VWKXmnsu8fzeddiQg/OfKJ3FHWW1pTrZIYOYj/tT7HIFUXoSaE+iE 8uSDf2f2Zt8ZAlLiEArWHF+jC5s7WiEpGI68JRHU4DHdusdG9xNqfji9OC8mAw= 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=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=nonexistent, Hx-languages-length:1033, Henderson, henderson X-HELO: mail-qk0-f181.google.com 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=lQowX5ka7oc30K27UnXCc19mk5zc0WfN0mvpvzFY+Qo=; b=gLNnvpgF5hfEObudnhXkinpebBVOsGrh6KQqZFeMnK0hTTwOgqP/VmB9vKu9xrNbYH A54z+dMVU+g3JdqZE5eB8OzMIZAwRA0nej9pRUrTMuKFBk04I38xURdO4bgHsrnZ1Rjh GPujvFSX3E+WTACIcSTZQklOPKk01KGNe0bzNAQjFWZO/u3k8oKSVx5Z7qKkwDA2IF4w JZKudOtQ0b+Lqg2hbJMUzEGpJDJZCn4wqETffc9/SufrFbaioEOVJVaf3p87/y7lvCQj 6yoG9zCFz4UdkZk8oqqOZnhWvTWtNoDQz9Vt+8c3Mc7EvgFvEuTuwKYtQaf0m7o3i+2N bVEw== X-Gm-Message-State: AE9vXwOkzcJIuedycvrJ/Va4OJ/Dk8ScavGw4F8ONQI34QxK8SR/PHoaskcM79RvZNKbSVLN3lRMpsOOo+VmCw== X-Received: by 10.55.148.193 with SMTP id w184mr3657516qkd.181.1472222919227; Fri, 26 Aug 2016 07:48:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A704BB92639@USA7109MB022.na.xerox.net> References: <0D835E9B9CD07F40A48423F80D3B5A704BB92639 AT USA7109MB022 DOT na DOT xerox DOT net> From: Doug Henderson Date: Fri, 26 Aug 2016 08:48:18 -0600 Message-ID: Subject: Re: cygpath -w and .exe magic To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On 26 August 2016 at 07:08, Nellis, Kenneth wrote: > Dear Cygwin Community, > > $ ls -l > total 60 > -rwxr-x--- 1 knellis Domain Users 60927 Aug 26 08:57 hello.exe > $ ./hello > Hello, world! > $ cygpath -w hello > hello > $ > > The purpose of cygpath -w, it seems to me, is to provide > to Windows a valid path given a Posix path. > There is no requirement that the any part of the path presented to cygpath actually exists. Otherwise, you would not be able to pass the name of a non-existent file or directory to a windows only program that only understands strictly windows paths. To do what you want, cygpath would need two new options. One to specify that the path represents an existing filesystem object, and a second to specify that the path represents an executable file. Both of those options would require cygpath to inspect the file system, rather than current operations which return path format transformations or static information. Doug -- Doug Henderson, 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