From owner-freebsd-questions Thu Feb 3 11:26:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by builder.freebsd.org (Postfix) with ESMTP id 6E80B4032 for ; Thu, 3 Feb 2000 11:26:34 -0800 (PST) Received: from morgaine (morgaine.wondermutt.net [192.168.1.2]) by wondermutt.net (8.9.3/8.9.3) with SMTP id OAA02658; Thu, 3 Feb 2000 14:10:14 -0500 (EST) (envelope-from papalia@udel.edu) Message-Id: <4.1.20000203140431.00a27da0@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Thu, 03 Feb 2000 14:07:43 -0500 To: Mauricio Marquez , freebsd-questions@FreeBSD.ORG From: John Subject: Re: deleting a nasty directory entry In-Reply-To: <3.0.32.20000203123116.016b1d40@enlace.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG One more shot.... First, when you're using the single quotes, I'm assuming you're using the single quote right below the double quotes? This may actually depend upon which shell you're running. Which one are you? I tested it in csh, and I believe it works in ksh as well. Perhaps temporarily change shells and give it a whirl? Also, you might want to try: rm -r ./\?\?\?\`\?\?\?* That or some other permutation of the above. Make REALLLLLY certain tho that you don't have any other directories or files in the "rogue" directory's parent directory that are similar that you want to keep. --John >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 =B4. rm "stuff" returns Unmatched `. rm =B4stuff=B4 >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=B4s no way I can match >those weird characters to try to do an RMDIR =B4weird chars=B4 and there=B4= 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. >> >>--=20 >>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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message