X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7D3C43858C39
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=plebeian.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=plebeian.com
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=plebeian.com; s=default; h=Content-Transfer-Encoding:Content-Type:
 Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender:
 Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
 Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:
 List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=xwLhdTuXOG3tIi12J5ss/MuywyYEEFEWdN9lvOqZ1qs=; b=CqsLLmSSfaiMEeB23NDHKE3OIw
 jnBRSR51/JyHU27N1xpJtRZ98vEgu1vlTQAE2nphLhJ9ihdD+9hmXh4E8WocA/t8oo6OptFtxpJlb
 rCMGVTMbiP0C5cirFmfMVheY1pz4o0FBNU1+NER5vQAslGkVf3n9da9WzJ4K0gKU+dsLxvWalfxpB
 hag5HSdgC+AvN9Du0efMu1UOXNwW8yA7f+IBauXKY/OKJn4ZUloOete2P5Nr6UkJ/hEl4Xz/Hym76
 bbhIJ5iKknRNq8PclWWJ1P8L1Zo+Td9DpSxhP9o5OAsB5e/FDKtl4/M41MXe0wdOieh6EHr+uVGal
 35uGqPNw==;
MIME-Version: 1.0
Date: Wed, 24 Nov 2021 10:40:36 -0500
From: Chris Wagner <wagnerc@plebeian.com>
To: cygwin@cygwin.com
Subject: Re: Could rm remove files and folders with colon in their name?
In-Reply-To: <YYwuGBM5JCXoMxZF@calimero.vinschen.de>
References: <e2bbb443-b876-40fe-ca58-ab0c7d064f7b@emmenlauer.de>
 <YYvN4unktsDraw4g@calimero.vinschen.de>
 <d4cfb303-60d9-e53c-d75f-a96f8fbf11b7@emmenlauer.de>
 <YYwuGBM5JCXoMxZF@calimero.vinschen.de>
User-Agent: Roundcube Webmail/1.4.11
Message-ID: <7c0bd10d2f8adbe2066fb21dc5ce1b09@plebeian.com>
X-Sender: wagnerc@plebeian.com
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - www16.qth.com
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - plebeian.com
X-Get-Message-Sender-Via: www16.qth.com: authenticated_id: wagnerc@plebeian.com
X-Authenticated-Sender: www16.qth.com: wagnerc@plebeian.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_05, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,
 SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 2021-11-10 3:39 pm, Corinna Vinschen via Cygwin wrote:
> To the contrary.  The problem is the ambiguity that "X:/foo" might
> be either the absolute POSIX path $CWD/X:/foo, or the absolute DOS
> path "X:\foo".  I have a patch which fixes your case, but not much
> else.  The problem is that we historically allow DOS paths as input
> at all.  That was a bad decision from the start, but you can't easily
> change 25 years of history...

To contribute my 2 cents, native support for DOS paths is invaluable for 
me.  Changeing that would break a lot of Windows/POSIX integration.

The simple fix for all weird/ambiguous names is to qualify it with 
`./...`.

Thanks.

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