From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www16.qth.com (www16.qth.com [69.16.238.67]) by sourceware.org (Postfix) with ESMTPS id 7D3C43858C39 for ; Wed, 24 Nov 2021 15:40:37 +0000 (GMT) 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==; Received: from [127.0.0.1] (port=34438 helo=www16.qth.com) by www16.qth.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1mpuNw-00EkMP-U8 for cygwin@cygwin.com; Wed, 24 Nov 2021 09:40:36 -0600 MIME-Version: 1.0 Date: Wed, 24 Nov 2021 10:40:36 -0500 From: Chris Wagner To: cygwin@cygwin.com Subject: Re: Could rm remove files and folders with colon in their name? In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.11 Message-ID: <7c0bd10d2f8adbe2066fb21dc5ce1b09@plebeian.com> X-Sender: wagnerc@plebeian.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2021 15:40:39 -0000 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.