cygwin and short windows filenames (Was RE: Open bash at the current explorer directory?)

Christopher Faylor cgf@redhat.com
Wed Sep 25 15:55:00 GMT 2002


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/



More information about the Cygwin mailing list