On Wed, Nov 06, 2002 at 12:12:38PM -0600, thompson at math-cs.cns.uni.edu wrote:
> and if you have problems with this add '--' before the  file
> name...

My whole point was that you _won't_ have any problems if you
refer to dash "dash files" using a leading directory name (./).
This method has the advantage that it will with most any command,
while I think the '--' trick only works with rm.

>  so:
>    rm -- ./-stupid_dash_file
>  -or
>    rm -i -- ./-stupid_dash_file
> 
> The second one will ask before deleting... not always bad to
> check before deleting.

Yes, only the truly brave do much work before aliasing rm to 
'rm -i'.

> On Wed, Nov 06, 2002 at 08:54:40AM -0600, Jim Crumley wrote:
> > On Tue, Nov 05, 2002 at 04:07:29PM -0600, Daniel Taylor wrote:
> > > The nastiest filenames have leading dashes...
> > 
> > Just use:
> > 
> > rm ./-stupid_dash_file

-- 
Jim Crumley                  |Twin Cities Linux Users Group Mailing List (TCLUG)
crumley at fields.space.umn.edu |Minneapolis/St. Paul, Minnesota 
Ruthless Debian Zealot       |http://www.mn-linux.org/ 
Never laugh at live dragons  |Dmitry's free,Jon's next? http://faircopyright.org