From owner-freebsd-questions Thu Feb 3 11:32:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athena.connectalk.com (athena.connectalk.com [204.19.165.44]) by builder.freebsd.org (Postfix) with ESMTP id 3D0753F58 for ; Thu, 3 Feb 2000 11:32:35 -0800 (PST) Received: from connectalk.com ([10.125.204.47]) by athena.connectalk.com (Netscape Messaging Server 3.6) with ESMTP id AAA5D3A; Thu, 3 Feb 2000 14:26:55 -0500 Message-ID: <3899D77A.27D1DEAD@connectalk.com> Date: Thu, 03 Feb 2000 14:31:06 -0500 From: Michel Adamus Organization: ConnecTalk X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Mauricio Marquez Cc: freebsd-questions@FreeBSD.ORG Subject: Re: deleting a nasty directory entry References: <3.0.32.20000203123116.016b1d40@enlace.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, you can always try mc (Midnight Commander, it's in the packages, under misc) It might work if it tries to remove the file/folder directly from the disk (node/inode, whathever it takes) and not using the shell, that calls another binary (rm or rmdir) to do something with the filesystem. I didn't test any of this, but I belive it might will work. Good luck! -A. Mauricio Marquez wrote: > > Well, thanks to all that have responded but i still have the file or > directory (i have no idea which it is). > > I tried with both " and ´. rm "stuff" returns Unmatched `. rm ´stuff´ > returns No such file or directory. > > I went with rm -i * but it says some weird characters (different that what > appears in the ls display) is a directory. Now there´s no way I can match > those weird characters to try to do an RMDIR ´weird chars´ and there´s no > RMDIR -i option. > > Any other ideas? > > Thanks! > > Mauricio > > At 10:19 AM 2/3/00 -0800, you wrote: > >On Thu, Feb 03, 2000 at 12:10:09PM -0500, Michel Adamus wrote: > > > >> The rm command uses getopt(3) to parse its arguments, which allows > >> it to > >> accept the `--' option which will cause it to stop processing flag > >> op- > >> tions at that point. This will allow the removal of file names > >> that be- > >> gin with a dash (`-'). For example: > >> rm -- -filename > > > >That has nothing to do with the specific problems he mentioned; the > >shell refuses to even start rm(1) because of the mismatched backquote, > >and his problems with wildcard expansion would also occur before rm(1) > >starts. > > > >The suggestions that other folks gave to put the filename in quotes > >or backslash the backquote are more relevant. > > > >At least this is a nice change from the usual situation where > >somebody has a filename that starts with a hyphen, and somebody > >tells him to put the filename in quotes. > > > >-- > >Matthew Hunt * Science rules. > >http://www.pobox.com/~mph/ * > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- - Throw me a bone here someone... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message