From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 06:15:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66FF316A4CE for ; Fri, 25 Jun 2004 06:15:50 +0000 (GMT) Received: from gldis.ca (constans.gldis.ca [66.11.169.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA1BA43D5F for ; Fri, 25 Jun 2004 06:15:49 +0000 (GMT) (envelope-from gldisater@gldis.ca) Received: from localhost (localhost [127.0.0.1]) by gldis.ca (8.12.8p2/8.12.8) with SMTP id i5P6Qvqi085305; Fri, 25 Jun 2004 02:26:58 -0400 (EDT) (envelope-from gldisater@gldis.ca) X-Authentication-Warning: gldis.ca: localhost [127.0.0.1] didn't use HELO protocol Message-ID: <40DBC3A4.6060608@gldis.ca> Date: Fri, 25 Jun 2004 02:18:12 -0400 From: Jeremy Faulkner User-Agent: Mozilla Thunderbird 0.6 (X11/20040522) X-Accept-Language: en-us, en MIME-Version: 1.0 To: epilogue@allstream.net References: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> <20040624235109.75b3399b@localhost> <50be591b04062421371516e6dc@mail.gmail.com> <20040625012205.75fac6ab@localhost> In-Reply-To: <20040625012205.75fac6ab@localhost> X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: Hemal Pandya cc: freebsd-questions@freebsd.org Subject: Re: two questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 06:15:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 epilogue@allstream.net wrote: | On Thu, 24 Jun 2004 21:37:32 -0700 | Hemal Pandya wrote: | | |>On Thu, 24 Jun 2004 23:51:09 -0400, epilogue |>wrote: |> |>>On Thu, 24 Jun 2004 20:29:35 -0700 |>>Hemal Pandya wrote: |>> |>> |>>>On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp |>>> wrote: |>>> |>>>>I'm having a brain freeze tonight and apparently forgot some |>>>>basic UNIX commands.. |>>>> |>>>>what is the command to remove the file "--directory" |>>>> |>>>>rm *directory* = nope |>>>>rm "*directory*" = nope |>>>>rm \-\-\directory = nope |>>>>rm -i * = nope and dosent even see the file |>>> |>>>rm ./-directory |>> |>>funny, though i tried these on a test directory... |>> |>>rm ./-test |>>rm -- --test |>> |>>...neither worked for me. |> |>Thats very surprising. The fist option above has worked for ever and |>the second at least for a decade or so. Can you post some output? |> | | | as requested... (standard shell and standard user) | | ~> mkdir test | ~> rm ./-test | rm: ./-test: No such file or directory No surprise here. You don't have a file or directory named '-test', you have one named 'test'. | ~> rm -- --test | rm: --test: No such file or directory Ditto. | ~> rm -r test | remove test? y | ~> mkdir test | ~> rm -rf test | ~> mkdir -- -test rm -r -- -test For my next trick, I will pull a rabbit out of the mailing list (hats are over rated). - -- Jeremy Faulkner http://www.gldis.ca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA28Ojfb0Lle2MIEIRAj07AJ9o1fd6h/hhicObseb5JHoI0FtrjwCgwpRn RbnHzPzw4iNG/+e0wHR5Q3s= =U72R -----END PGP SIGNATURE-----