Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Shankar Unni <shankar@cotagesoft.com>
Subject: Re: cygpath bug?
Date: Fri, 13 Jun 2003 09:14:27 -0700
Lines: 15
Message-ID: <bcct45$4ob$1@main.gmane.org>
References: <bcan6d$67i$1@main.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@main.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529
X-Accept-Language: en-us, en
In-Reply-To: <bcan6d$67i$1@main.gmane.org>

BB wrote:

> Shouldn't GetShortPathName() == 0 always cause the get_short_name()
> function to fail?

I would sincerely hope not. I see no reason why cygpath conversion has 
to be tied to the existence of files. We often need to use cygpath to 
convert between formats for files which we are about to create.

e.g.

   notepad `cygpath -d "/cygdrive/c/some nonexistent file.txt"`

will make notepad create that file for me.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

