Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Tue, 10 Dec 2002 17:18:59 +0100 From: Corinna Vinschen To: "'cygwin AT cygwin DOT com'" Subject: Re: cd accepting paths with trailing dots that don't exist (bash and tcsh) Message-ID: <20021210171859.F7796@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: "'cygwin AT cygwin DOT com'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i On Tue, Dec 10, 2002 at 03:49:24PM -0000, Steve Fairbairn wrote: > > Corinna & All, > > After a play with a dos command prompt, I see your point. I would however > point out that there is still a difference with bash. If you have more than > one trailing . in bash, the 'directory' it puts you in is empty, and you > cannot create any files in there. Also bash seems to retain the trailing > dots as part of your cwd, which the dos prompt doesn't do. With the dos > prompt, it just seems to strip the trailing dots off, and always leave you > in the directory you trailed with dots. > > As for "correct functionality" I meant whatever the cygwin developers define > as correct. My personal preference would be for bash to complain about the > trailing dots, but I understand that the shell probably just uses the > Windows OS chdir function, and so it is Windows deciding the path is valid. > Would there be massive overhead in bash re-reading the cwd after a > successful chdir, and so not display the dots? How come ls etc doesn't work > if there is more than one trailing dot? Weird. Works for me. I can create a dir "a.b" with files in it and then cd into "a.b....." and I can see the files. I'm running tcsh, though. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/