X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AC6A385801F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=emmenlauer.de Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=emmenlauer.de To: cygwin AT cygwin DOT com References: From: Mario Emmenlauer Message-ID: Date: Wed, 10 Nov 2021 21:24:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-CA X-SA-Exim-Connect-IP: 188.194.28.182 X-SA-Exim-Mail-From: mario AT emmenlauer DOT de X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, TXREP, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.4 Subject: Re: Could rm remove files and folders with colon in their name? X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on aldebaran.he1ix.org) X-BeenThere: cygwin AT cygwin DOT 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: , Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1AAKQ1ki020843 On 10.11.21 14:49, Corinna Vinschen via Cygwin wrote: > On Nov 10 10:45, Mario Emmenlauer wrote: >> Could 'rm' support removing files and folders that have a colon ':' in >> their name? I.e. I would like that 'rm -fr' would remove a full directory >> tree, including such folders. Currently it will correctly remove anything >> inside such folders, but not the folder itself. >> >> As an example, for the following structure: >> C:/root/folder/C:/inside/file.txt >> >> When using 'rm -fr root', afterwards I have: >> C:/root/folder/C: > > It works fine if the folder is called, say, "a:b", it just doesn't > work for a name which looks like a drive letter "x:", apparently. That is indeed interesting, I was not aware of it! Then maybe the problem is not so hard to solve? That would be awesome! > Funny. I'm busy with non-Cygwin stuff ATM, but I'll look into it > later. > > Thanks for the report. Thanks a lot for your support! All the best, Mario Emmenlauer -- BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: +49-89-74677203 Balanstr. 43 mailto: memmenlauer * biodataanalysis.de D-81669 München http://www.biodataanalysis.de/ -- 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