| delorie.com/archives/browse.cgi | search |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 4BGDQESv3698455 |
| Authentication-Results: | delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com |
| Authentication-Results: | delorie.com; spf=pass smtp.mailfrom=cygwin.com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 4BGDQESv3698455 |
| Authentication-Results: | delorie.com; |
| dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=vvU+o5AA | |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 01C593858C98 |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
| s=default; t=1734355574; | |
| bh=53DHS8dfIFdIcj0xgXQ9c29Kpg7NbG/cnFj5muBBK/E=; | |
| h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: | |
| List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: | |
| From; | |
| b=vvU+o5AAfCUPErX3vcVTMmZm+TYDNjSxoRJu6bRdrtIBGDc7ptH4pVsfZ3m9GBeQY | |
| 7ZwIFASlITBu90UOLN5Y0xzKeiuYUwUyfBLeRB0j3b8/p3rzzB5+89oJyAgb8aMbL/ | |
| x59a+tSCcj4QZ4eART/e0VqeIg/hduCIfcP74zzo= | |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 5F787385841F |
| ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org 5F787385841F |
| ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734355503; cv=none; |
| b=cyIQn1ubNV6S+94aHbq7emCAc6+VHw/8y7XVqHsey6J9lhhKzk2nLEh2Bfqljerm82ALVAmT8S7qtOxV0I4mEfWL0vNnczPnQ2mwTm7/ph9nKJNbEBmf/KpuwUmE67OoMai3Lb+LeF036YvTVV4TqyvJyhadVNzmf8U9uN2nDXY= | |
| ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
| t=1734355503; c=relaxed/simple; | |
| bh=JoRsAQR49R6tjUUYqdAarcJ9XOFhXj1bv1d9s6UCvZ8=; | |
| h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; | |
| b=ImAvfUgKmObmKXIUx7R8ffIUDAUEyKF/+9i9gRIFul56ge2ihQTZjNoSHU+eGpktVsA3mpLbYtMVXzzraMck5+A6/4eMUMAjD2oFqmeMo739nvH1F/CqlxQ74/2kykuUkbDiVvw9ogSREzUDs33aqUgyYQO7at63f3ZJJgSBRi8= | |
| ARC-Authentication-Results: | i=1; server2.sourceware.org |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 5F787385841F |
| Message-ID: | <3077aa3e-f010-4bbb-a44a-528f7bea226e@kircheis.it> |
| Date: | Mon, 16 Dec 2024 14:24:54 +0100 |
| MIME-Version: | 1.0 |
| Subject: | Re: cygpath and unc paths |
| To: | cygwin AT cygwin DOT com |
| References: | <ee626000-a159-4482-a897-da725f02b28c AT kircheis DOT it> |
| <Z1bYfmvPYc6yFEJr AT calimero DOT vinschen DOT de> | |
| <053d21b3-ee11-4858-a60d-54cd154fd98c AT kircheis DOT it> | |
| <Z1buBnm2WlNEG8t1 AT calimero DOT vinschen DOT de> | |
| <16f5e717-2271-4107-b1b3-f28c3a1ca47d AT kircheis DOT it> | |
| <1475774521 DOT 20241216160057 AT yandex DOT ru> | |
| In-Reply-To: | <1475774521.20241216160057@yandex.ru> |
| X-BeenThere: | cygwin AT cygwin DOT com |
| X-Mailman-Version: | 2.1.30 |
| List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
| List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
| List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
| From: | Federico Kircheis via Cygwin <cygwin AT cygwin DOT com> |
| Reply-To: | Federico Kircheis <federico AT kircheis DOT it> |
| Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
> This way, you're testing command interpreter, not WinApi.
>
> The command interpreter has its own ideas about what you can and can not use
> with it.
Yes, after I saw it works with "-literal" I convinced my self it is a
bug in PowerShell (I guess they strip the trailing \, but who knows).
But then I noticed that:
* cd \\?\C:\Windows\; cd .. also fails (another bug in PowerShell?)
* the "-d" parameter of Windows Terminal has a very similar issue
* FindFirstFile (thus WinApi) documents that it does not work with the
root directory ("Prepending the string "\\?\" does not allow access to
the root directory", from
https://docs.microsoft.com/windows/win32/api/fileapi/nf-fileapi-findfirstfilew)
So even if \\?\C:\ is a valid path (and to me it still looks like a
valid one), support seems to be scarce or at least inconsistent with the
tools provided by Microsoft.
>> and repeat the same operation with dir instead of ls.
>
>> The error message is that the "value of argument path is not valid"
>
> F.e. Far manager works just fine with `goto:\\?\C:\`. More or less.
Yes, Far was the only tool (except cygwin) that worked with every path
I've tested; in this particular case, far \\?\C:\ opens the correct
directory.
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |