delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/09/06:46:36

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4B9Bka16795912
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 4B9Bka16795912
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=Asq76w+j
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 410B8385842D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1733744795;
bh=wlftRS1UyCdtXkJA6ol8BQqoALkqYfZQwBjwMeT8vqI=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=Asq76w+j5omTKEwZSn6KX8PmB7lF57psY8jHj759/m0uFc4PXMxN0ManiH4OLPPjZ
CHeuvMC1Tij7guNcOK8PToaY4ucr54nA0zCTZ5WNb1P7h552TsARogg3wFMDF1RIwp
Zx/96z1VVkDNt1OoXUx25AZpMV3vGeRIigD+qyE8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E4DC3858D33
Date: Mon, 9 Dec 2024 12:46:06 +0100
To: cygwin AT cygwin DOT com
Subject: Re: cygpath and unc paths
Message-ID: <Z1bYfmvPYc6yFEJr@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <ee626000-a159-4482-a897-da725f02b28c AT kircheis DOT it>
MIME-Version: 1.0
In-Reply-To: <ee626000-a159-4482-a897-da725f02b28c@kircheis.it>
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Dec  6 13:23, Federico Kircheis via Cygwin wrote:
> Hello,
> 
> was it considered to add a flag to cygpath to output a path in unc format?

No.  But it wouldn't be much work.

> 
> 
> For example, the folder
> 
> C:\test.
> 
> cannot be accessed from many Windows applications (powershell and cmd
> included) because of the trailing dot, while cygwin has no issue creating,
> accessing and deleting such files/folders.
> 
> Using an unc path
> 
> \\?\C:\test.
> 
> solves the issue for some programs, but cygpath currently misses an option
> for creating such path.

As a workaround you can just prepend the long path prefix:

  echo -n '\\?\'; cygpath ...

> Notice that creating a dos path leads to an error.

I don't understand. Creating which DOS path with which application?


Corinna

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

- Raw text -


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