delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/06/14:16:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 6 Jul 2000 14:12:03 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: cd ....
Message-ID: <20000706141203.A21387@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com
References: <3964BB6B399 DOT E1F4SOHDA AT matsulab DOT is DOT titech DOT ac DOT jp> <20000706134323 DOT G20864 AT cygnus DOT com> <3964CB41 DOT E558080A AT veritas DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <3964CB41.E558080A@veritas.com>; from rmcgowan@veritas.com on Thu, Jul 06, 2000 at 11:09:05AM -0700

On Thu, Jul 06, 2000 at 11:09:05AM -0700, Bob McGowan wrote:
>There is a difference between the Windows handling of this and what
>bash/cygwin is doing.  Windows cmd (on NT 4.0) appears to ignore the
>request.  The current directory does not change and cd with no args
>gives the same current path as existed before trying the 'cd ...'
>command.
>
>bash/cygwin is "changing" to the specified location, so pwd reports the
>'new' path, as was given in the cd request.  But an ls shows the
>directory contents are the same as for the starting directory, so no
>change has actually happened.
>
>I also found that this only works one level deep for bash/cygwin:
>
>    $ cd ..../....
>    bash: cd: ..../....: No such file or directory
>
>But cmd treats this the same as a single level.
>
>Are these the expected behaviors?

Sigh.  No.  You're right.  Cygwin shouldn't just silently accept this
and then act as if nothing was typed.

This is probably a recent problem due to the fact that we're caching
the POSIX version of the current working directory.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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