[SunHELP] stupid error

Taren sunhelp at sunhelp.org
Thu Feb 8 05:02:25 CST 2001


> 
> How can you delete a file that is named -al?  Being stupid, I forgot what I
> was doing and typed 'touch ls -al'.  Now, rm and mv both refuse to touch the
> file, whether I quote it, double-quote it, backslash escape it, or stand on
> my head, claiming that -al are illegal arguments.  Help!
> 

Just for the  hell of it, I recreated this problem on my system, and was able
to delete the (two) files with 'rm ls \-al'.  

Taren



More information about the SunHELP mailing list