delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/01/15:23:53

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 1 Apr 2011 21:23:26 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bug when current directory has a trailling dot?
Message-ID: <20110401192326.GG3669@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <318c5bae4eaf30595c8f54a8325ddd98 DOT squirrel AT correio DOT trt9 DOT jus DOT br>
MIME-Version: 1.0
In-Reply-To: <318c5bae4eaf30595c8f54a8325ddd98.squirrel@correio.trt9.jus.br>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Apr  1 16:13, Heraldo Maciel França Madeira wrote:
> Hello,
> 
> I´ve noticed the following problem in accessing Windows executables from
> specific directories.
> 
> If the current directory has a dot-ended component directory, like
> ~/x/y./z or
> ~/x. then some weird things happen (in bash, and in sh, as well):
> 
> ----------------------------------
> $ cd ~/x/y./z
> $ /cygdrive/c/Windows/System32/netstat
> bash: /cygdrive/c/Windows/System32/netstat: Not a directory

File names with trailing dots or spaces are not valid Win32 paths,
even though the underlying NTFS fileystems as well as Cygwin supports
them.  However, Cygwin refuses to start native WIn32 applications
to start in directories which are not valid Win32 dirs.  Also see
http://cygwin.com/cygwin-ug-net/using-specialnames.html for more info
about special filenames.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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