Subject: Re: Removing a file "-al"
To: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 04/22/2001 18:43:44
On Sun, Apr 22, 2001 at 09:57:09PM +0530, Rakhesh Sasidharan wrote:
> 
> OK, so I screwed up big time, and typed the following
> $ mkdir ls -al
> 
> SO now I have two directories "ls" and "-al".  I removed "ls", but don't
> know how to remove "-al".  All commands fail:
> 
> $ rm -f '-al'

rm ./-al

Any word starting with '-' is considered an option, util the first word not
starting with '-' (so 'rm -rf nonexistent -al' would have worked too :)


--
Manuel Bouyer <bouyer@antioche.eu.org>
--