From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 6 05:00:40 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14CC216A420 for ; Thu, 6 Oct 2005 05:00:40 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF7AF43D46 for ; Thu, 6 Oct 2005 05:00:39 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9650dad003265 for ; Thu, 6 Oct 2005 05:00:39 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9650dAu003264; Thu, 6 Oct 2005 05:00:39 GMT (envelope-from gnats) Date: Thu, 6 Oct 2005 05:00:39 GMT Message-Id: <200510060500.j9650dAu003264@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Giorgos Keramidas Cc: Subject: Re: bin/86931: rm wildcards is not rming files with brackets X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Giorgos Keramidas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 05:00:40 -0000 The following reply was made to PR bin/86931; it has been noted by GNATS. From: Giorgos Keramidas To: Jack Low Cc: bug-followup@freebsd.org Subject: Re: bin/86931: rm wildcards is not rming files with brackets Date: Thu, 6 Oct 2005 07:52:51 +0300 On 2005-10-05 09:04, Jack Low wrote: > %rm /*/*/*/*/*/*/*-file-in-this* > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > rm: /hidden/---[No-SFV-file-in-this-directory]-: No such file or directory > % Are you sure this isn't some nasty trick csh(1) plays to you? Using GNU bash and /bin/sh here I see quite different things: : $ mkdir /tmp/keramida : $ cd /tmp/keramida : $ touch '[foo]' : $ ls -l : total 0 : -rw-rw-r-- 1 keramida wheel - 0 Oct 6 07:49 [foo] : $ rm *foo* : $ ls -l : total 0 : $ env PS1='sh> ' sh : sh> pwd : /tmp/keramida : sh> ls -la : total 4 : drwxrwxr-x 2 keramida wheel 512 Oct 6 07:49 . : drwxrwxrwt 10 root wheel 1536 Oct 6 07:50 .. : sh> touch '[foo]' : sh> ls -l : total 0 : -rw-rw-r-- 1 keramida wheel 0 Oct 6 07:50 [foo] : sh> rm *foo* : sh> ls -l : total 0 : sh>