delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/02/11:35:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4DBECF39.7030107@redhat.com>
Date: Mon, 02 May 2011 09:35:21 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Symlink to drive and space in directory name leads to DOS warning
References: <786EBDA1AC46254B813E200779E7AD36018EC5DB AT srv1163ex1 DOT flightsafety DOT com>
In-Reply-To: <786EBDA1AC46254B813E200779E7AD36018EC5DB@srv1163ex1.flightsafety.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

--------------enig11410A0806CCE32C465727E7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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 t=
he first time after starting Cygwin, I get a DOS warning even though I'm no=
t using a DOS path. This only seems to happen when I access the directory t=
hrough 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 wa=
rning.
>   Consult the user's guide for more details about POSIX paths:
>     http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

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

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:

$ set -vx
$ pushd ~/myuserdrv/My\ Down[TAB]

might give me some insight where to look at plugging the leak?

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig11410A0806CCE32C465727E7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNvs85AAoJEKeha0olJ0Nq0x8IAJm6PVKyYyK/Frawq/VbNj46
eEO8cia893UVOGY+SYTAZStHsrHbUOmQbgVu1moityTnyKLUQIb1ut7D8H3W7rhx
wzPmHn93R9u7qwLOFLXcpUeWJbnPszGAfyhsMHlDcJ72MZc/3xquvh2ZY6KD9Xuf
PJrcklV8dAgnEo3JJKU+DXJX+KLLkYsV2eAadZvBmpvxUZp2C+QRQ83RfeXES2lP
k86VEHeWytG2NOJZc57FsLvOLj4C9r0hAEtiI9Wr5ZeyG0xO33eYogWr0rVkiqt8
7jwlOLXten4NEmQAiAUVXojJ8aKUpqanfTnqPhwNTesaIyIvu9JvHoSrajda9Ug=
=H2ze
-----END PGP SIGNATURE-----

--------------enig11410A0806CCE32C465727E7--

- Raw text -


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