On Thu, 2002-07-04 at 12:29, DaZZa wrote:
> Mind you, I'd expect that the command _should_ have errored because you
> had a "-" in the middle of it - it should have accepted the next option as
> an argument, not part of a filename.
> 
> Except I just tested it, and it went back to my home directory and deleted
> everything. Whups. :-) Foolish me. There's obviously something in that
> {maybe the - *} bit which sends it back to your home dir and deletes
> everything.

Doing a "cd -" will expand to the last directory you were in:
(peter@fizgig)(peter)(577)
$ cd slug/ctte-meetings/
(peter@fizgig)(ctte-meetings)(578)
$ cd -
/home/peter
(peter@fizgig)(peter)(579)
$ cd -
/home/peter/slug/ctte-meetings
(peter@fizgig)(ctte-meetings)(580)
$ 

I'm not game to try it with an rm. :-)

> And I should have never attempted to test it. :-)

Woo!  Are we awarding a prize for most creative way to lose data? ;-)

-- 
Pete
[EMAIL PROTECTED]

Granny: I'm pleased to say I don't even know what a sex object is.

Nanny:  I do.  Our Shane brought one home from foreign parts once.
                 -- (Terry Pratchett, Witches Abroad)

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to