delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/25/16:39:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 25 Sep 2002 16:39:55 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin and short windows filenames (Was RE: Open bash at the current explorer directory?)
Message-ID: <20020925203955.GC6078@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <C42E3A12C85D6F43BA7D6FF7E89B053A1D9888 AT ant02exc DOT ant-it DOT com> <Pine DOT GSO DOT 4 DOT 44 DOT 0209251240340 DOT 12726-303000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0209251240340.12726-303000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.4i

On Wed, Sep 25, 2002 at 03:33:01PM -0400, Igor Pechtchanski wrote:
>You're right, this is a problem.  Cygwin should be able to handle
>windows short form of directory names just as well as the long ones...
>For some reason it doesn't ('cd /cygdrive/c/PROGRA~1' results in "cd:
>/cygdrive/c/PROGRA~1: No such file or directory").  This is happening
>in most shells (sh, bash, tcsh), so I'm assuming it's a 'chdir()'
>problem.  This only seems to happen if "check_case:strict" is part of
>$CYGWIN.  Passing a short windows filename to other programs, e.g., vi,
>also fails with check_case:strict and succeeds with
>check_case:relaxed/adjust.

It's not really surprising that this would fail with strict case
checking.  If you look at the code for strict case checking then you'll
see that there is no provision for doing a "It failed this check, I'd
better check the short name, too".  In fact, since strict case checking
is supposed to make cygwin behave slightly more like UNIX, which has
no such thing as a short name, then you could call this a feature.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019