X-Recipient: archive-cygwin@delorie.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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=OxDaOsTsmszCKcS2
	zutLovvzi7tthl2+S6wCYTCuJI2YkBaXSlAkJEot5Gjutp4j2mEbPWkodvyO70NB
	cGvo/1VYM8pDtoppyMfzLylrVPyhx7/j3js7PzCnVKArwmoVqy+NTea8MUQCEJkv
	jYsaJ08JNH+j7LCjTtdaA/4Biew=
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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=/adMVlWRr3kkrm0egDrcva
	3TPeI=; b=Dq8f9iXB8XO+mI822zKIb0H1EHVjXUaEf2dGqW+/ZL9T3qXWROap3O
	h1OX4xw9a07ATMCyvQnVqFt+K4AyvlI558jCg4ekcBYawQZK5C94bKHcnQ8V1qdq
	BKysSMj6GtBKuo7IjocMfq1fkYWBiWp46wtePcvW4+YnVrGyZxYBo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173025pub.verizon.net
Message-id: <530063F2.5080403@cygwin.com>
Date: Sun, 16 Feb 2014 02:08:34 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: Little cygpath improvement request
References: <111910987.20140214222230@mtu-net.ru> <52FE6397.5010105@cygwin.com> <187072112.20140214234339@mtu-net.ru> <20140215125606.GM2246@calimero.vinschen.de> <1745533059.20140215225708@mtu-net.ru> <2826041.20140216062749@yandex.ru> <53004F35.4020301@googlemail.com> <1793681198.20140216102125@yandex.ru>
In-reply-to: <1793681198.20140216102125@yandex.ru>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

On 2/16/2014 1:21 AM, Andrey Repin wrote:

<snip>

> It provide no information at all in any event (be it missing argument, or
> nonexistent path (not like it's checking for existence right now... which only
> making situation more complicated)), requiring non-obvious, manually conceived
> tests to ensure that the program operates orderly.

I think you're looking for more from cygpath than it's designed to give.
Its intent is to perform direct Windows<->POSIX path conversions using the
mount table and to provide access to some system defined paths in Windows.
That's really it.  It is not meant to validate input or output.  If you have
a use case which requires that only valid paths are input to or output
from cygpath, that does need to be handled upstream or downstream.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

