X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 626C23857C63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1636552196; bh=DhMetB0yv/Yqgap22JD7mOH3VN9Q4T70IqGGS4zoSOQ=; 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=fDHOPMXxauYtL2PfWvp1e4Xbce+kQOLaFh4FCaPmp+UY2GmNKuQPs0XxEy9rohGmw A2UG7mJq7UoWYXfI3KK+RAJ3bJTfHZUM8L+wXDdklnKTLZLZx67eed25oSZ7yzoJfv OnnsOxtgr+FKafl1/arDMtCn3Kqfd/M5PDRdl2PY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0509C3858400 Date: Wed, 10 Nov 2021 14:49:22 +0100 To: cygwin AT cygwin DOT com Subject: Re: Could rm remove files and folders with colon in their name? Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:XfgEQlTdKzrWY2irM/68mzj/B1uLMikD2aaWysO1k1UAGpXqWVH DVR1BzKoc2ZZvF93iTDu/zqseq0Gz3chj6ZkK/Ds5r6v07Cyclq9/sJh4dUcTgC7MgoZcfI j85mUE/9B9qU7e5RRzVAH7IsoXTbs5UtzI3MTE435h4sWvHXYDtw7yImWAS4Lkp7hpwGD34 ZLOkGpweVT2ESik3axU3Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:X2+9yr6TmYQ=:h08zk85ND91a/9s3m0/f4M l4eJwnxvfUkH8vYb6R2+yVOiZ0EJMB+nyx8Ew/w11a16rJGJ9ARifocCoCPPRCxgjxl863wqx 1xQHNNWNfNs9eM64QnalzTSy2DSou1zMlzv05jtCdGWDj6Tlik2d346V8UXzfsUfHKqedi9qf OGXEKTtMSdNyJJBhx3UBtcGEO3DthEz7eGt2jo+cIUlPucCBmWXGol+A9C0+m7FgCVQx1ncIb cCcjj9g9GMXQf0ZI9Kx6cr3ee/2oLsSvKm8/9Bw+rCWR25mx1w8VAsFuPzVMYG/iUPslJaDKg BpcU3ufakbKrEdlVEtyYoACNiXKAeRbUhi9/oSOZkHGahAg3alE6ysWQDpG0YdO5wgNyOrKHB HJbY2ZderkIhwkyReWeJE1CTdEdcZpjvp7oRfrIrzfTkCFpSOUn9zIGV5Q9yPLOMMcVtjMOKO AVZ1asidfSPodq4UYlJoeAA7l3zDp/9sb77aik/Wa+sm+PoJfMuHGa2K0jq1TfwwWsouDgr5E jvqDRD07I7GqMsypJhbYlwimhDIXbCVlag0e7Iq5FcNOJghrkNSdBdxaLuZhoiSKRzQrbGtV1 +/ZyKCwu+AAMtqPLQEAlUCnk39T3IaiyDXkhLLDASqTm3hTrkhBYCeg0+BF7HSNik5AoPZxI/ P7Q87CVOEgv7/CfkKiuiIs9mcInhOP+pXRb//iWQ/XQSOM1leKMgu/PsYZGUZzsJtHUTMYq5H ouPK9UTF6u6vSriw X-Spam-Status: No, score=-99.3 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, 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 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: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Nov 10 10:45, Mario Emmenlauer wrote: > > Dear All, > > I've searched if this topic has come up before but could not find it. > > 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. Funny. I'm busy with non-Cygwin stuff ATM, but I'll look into it later. Thanks for the report. 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