Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 02:18:12 -0400
From:      Jeremy Faulkner <gldisater@gldis.ca>
To:        epilogue@allstream.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: two questions
Message-ID:  <40DBC3A4.6060608@gldis.ca>
In-Reply-To: <20040625012205.75fac6ab@localhost>
References:  <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> <20040624235109.75b3399b@localhost> <50be591b04062421371516e6dc@mail.gmail.com> <20040625012205.75fac6ab@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

epilogue@allstream.net wrote:
| On Thu, 24 Jun 2004 21:37:32 -0700
| Hemal Pandya <hemalpandya@gmail.com> wrote:
|
|
|>On Thu, 24 Jun 2004 23:51:09 -0400, epilogue <epilogue.allstream@net>
|>wrote:
|>
|>>On Thu, 24 Jun 2004 20:29:35 -0700
|>>Hemal Pandya <hemalpandya@gmail.com> wrote:
|>>
|>>
|>>>On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp
|>>><ms.probsd@org> 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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40DBC3A4.6060608>