delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/24/08:51:24

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=GfNxQ2Ed6sym/0/n
s19rAxDf6HH7R6vr4p3qguNJ5+FNmRzQIt8m/Orn86Rnk4vrKpKBZYJHSdHAjmD5
tWsifg/oZf7AZ4url835L0jrZYbvUk4A+SVDoorYOkRjQOkBswek+oRqS5Li/4nA
D38P6P0jdtvctRXAbAZ/7I5rUu8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=gYYuwVGxekNVD8slvltu4r
jSGe8=; b=LxfXnxCniUpuEC7ZFeRiL+uonIPfl7L9rZJkfAA/5H+uMJuxCTW/Pf
es2ECzXs65qZAHOYbsQLyt1Tzv5MybkVeoBOTPvsowCqZOSIjSb5TSkIgOdFLSK6
tVUzY3+H+vhsXkcB0vejZTqwOG0TzbqABLXYpu0V/ka86fWj5gVT8=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=UD:ru, indicating, H*M:yandex, indication
X-HELO: forward100p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1569329401; bh=WyJvk+8Yq0LM6ThsnrAeJsEejEGLF0ZxuUh7NmD8riY=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=FrLzaR2/uLiGU0hzc7M5FYKN8J0kLLzFHKKxMiPS/huuGEqVVm3iY0OFbG4+dHniW FgB94YPBxeWNINoNrseqdlEcqbpFPeICJlziaOipe3kr/Oyd992nLXu2wbCNctJ0tZ 5Z9SNbQStauGndA76HHQADPoP9IeaBCgIuE++agM=
Authentication-Results: mxback13o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Tue, 24 Sep 2019 15:46:08 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <643902820.20190924154608@yandex.ru>
To: =?utf-8?Q?J=C3=BCrgen_Wagner?= <juergen AT wagner DOT is>, cygwin AT cygwin DOT com
Subject: Re: ls \\\\\?\\DRIVE\\ Aborted (core dumped)
In-Reply-To: <7518af94-3c5b-0019-b99b-8409c138b40c@wagner.is>
References: <1569223086 DOT 860642696 AT f357 DOT i DOT mail DOT ru> <CAJLNCaRU3VtPUu=q+R+-X0PurudJ0_8LmHHGKJkkETJtCPDX3Q AT mail DOT gmail DOT com> <5ccc23b3-0240-7382-d018-a7a6bf285f47 AT cornell DOT edu> <5e1afbfe-997a-a528-acfc-38512310041a AT SystematicSw DOT ab DOT ca> <4210536081 DOT 20190924012630 AT yandex DOT ru> <7518af94-3c5b-0019-b99b-8409c138b40c AT wagner DOT is>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x8OCoxlE009384

Greetings, Jürgen Wagner!

Please no top-posting in this list. Thank you in advance.

> ls \\\\.\\d:\\
> ls: cannot access '\\.\d:\': Not a directory
=>> The alternative notation with a "." does not seem to be understood. 
> It works in DOS shells.

This is not an "alternative notation", this is a "device namespace".
Shell is not necessarily an indication of the right path.
You may be better off writing a small program that calling Win32 CreateFile
directly, if you want to test various paths.
Ref: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file

> ls //\?/d:/
> ls: cannot access '//?/d:/': Not a directory
=>> The replacement notation with forward slashes (which works with UNC 
> paths) does not seem to be honored here.

Which is also dubious in case of Cygwin.
And double forward slashes are indicating Cygwin UNC path.
Not a Windows NT namespace prefix.

> It seems to me the device notation is not really implemented in Cygwin, 
> and if invalid device paths are used or strange, invalid syntactic forms 
> are used, this fails with a core dump.

> This is on CYGWIN_NT-10.0 saraswati 3.0.7(0.338/5/3) 2019-04-30 18:08 
> x86_64 Cygwin on a Dell 5470 with the latest Windows 10 version.


-- 
With best regards,
Andrey Repin
Tuesday, September 24, 2019 15:41:52

Sorry for my terrible english...
--
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