On Wed, Mar 22, 2000 at 10:14:19PM -0500, Marshal Kar-Cheung Wong wrote:
> I was wondering how to remove a file by the name of --help.tgz?
> (Don't ask...Okay if you really must know, I typed in tgz --help and I
> get that file.  There's no man page for tgz, and I think tgz shouldn't
> accept things starting with -- as file names...)  rm always takes it
> as an option, even if quotes, double-quoted, backslashed,
> regular-expressioned.  Any suggestions?

like this:

[EMAIL PROTECTED] tmp]$ touch -- --help
[EMAIL PROTECTED] tmp]$ ls -l
total 0
-rw-r-----    1 eb       eb              0 Mar 22 21:40 --help
[EMAIL PROTECTED] tmp]$ rm -- --help
[EMAIL PROTECTED] tmp]$ ls -l
total 0
[EMAIL PROTECTED] tmp]$


-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Reply via email to