Subject: Removing a file "-al"
To: netbsd-help@NetBSD.org <netbsd-help@netbsd.org>
From: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in>
List: netbsd-help
Date: 04/22/2001 21:57:09
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: illegal option -- a
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
$ rm -f "-al"
rm: illegal option -- a
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
$ rm -f \-al
rm: illegal option -- a
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file

I tried similarly with rmdir also.  I suppose I could use something like
mc or some X filemanager, but I want to try and remove it using CL utils.

Could somebody help/advise,
__
Rakhesh Sasidharan	rakhesh at cse.iitd.ac.in