delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/02/12:04:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Symlink to drive and space in directory name leads to DOS warning
Date: Mon, 2 May 2011 11:04:19 -0500
Message-ID: <786EBDA1AC46254B813E200779E7AD36018EC609@srv1163ex1.flightsafety.com>
In-Reply-To: <4DBECF39.7030107@redhat.com>
References: <786EBDA1AC46254B813E200779E7AD36018EC5DB AT srv1163ex1 DOT flightsafety DOT com> <4DBECF39 DOT 7030107 AT redhat DOT com>
From: "Thrall, Bryan" <bryan DOT thrall AT flightsafety DOT com>
To: <cygwin AT cygwin DOT com>
CC: "Thrall, Bryan" <bryan DOT thrall AT flightsafety DOT com>
X-IsSubscribed: yes
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

Eric Blake wrote on 2011-05-02:=20
> On 05/02/2011 09:30 AM, Thrall, Bryan wrote:
>> When I try to do a tab-completion on a directory with a space in it
> for the first time after starting Cygwin, I get a DOS warning even
> though I'm not using a DOS path. This only seems to happen when I
> access the directory through a symlink I have to my E: drive, like so:
>>=20
>> thrall AT pc1163-8413-xp ~
>> $ pushd ~/myuserdrv/My\ Downcygwin warning:
>>   MS-DOS style path detected: ~/myuserdrv/My\ Downloads Preferred POSIX
>>   equivalent is: ~/myuserdrv/My/ Downloads CYGWIN environment variable
>>   option "nodosfilewarning" turns off this warning. Consult the user's
>>   guide for more details about POSIX paths:
>>     http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>=20
> Are you using bash-completion?  If so, it's likely a bug in
> bash-completion for passing an underquoted file name through the shell
> such that it results in a failed globbing attempt on a literal \.

AFAIK, I am not using bash-completion; the package is installed, but I don'=
t source /etc/bash_completion in my ~/.bashrc.

> I haven't yet managed to reproduce this in my setup (perhaps I need to
> double-check that my $CYGWIN hasn't already suppressed the warning?).
> Maybe showing:
>=20
> $ set -vx
> $ pushd ~/myuserdrv/My\ Down[TAB]
>=20
> might give me some insight where to look at plugging the leak?

I don't think there's much help there, unfortunately:

thrall AT pc1163-8413-xp ~
$ set -vx
settitle
++ settitle
++ echo -ne '\033]0;bash\007'
thrall AT pc1163-8413-xp ~
$ pushd ~/myuserdrv/My\ Downcygwin warning:
  MS-DOS style path detected: ~/myuserdrv/My\ Downloads
  Preferred POSIX equivalent is: ~/myuserdrv/My/ Downloads
  CYGWIN environment variable option "nodosfilewarning" turns off this warn=
ing.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
loads/
pushd ~/myuserdrv/My\ Downloads/
+ pushd '/home/thrall/myuserdrv/My Downloads/'
~/myuserdrv/My Downloads ~
settitle
++ settitle
++ echo -ne '\033]0;bash\007'

(settitle is my function to set the window title; PROMPT_COMMAND is set to =
it)

It does seem to be limited to tab-completion, though; if I type in the full=
 directory name (~/myuserdrv/My\ Downloads) and hit enter, I don't get the =
warning.

E: is a partition of my local drive, in case it matters.
--
Bryan Thrall
FlightSafety International
bryan DOT thrall AT flightsafety DOT com
=A0=20



--
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