I believe the '--' is a POSIX (or some other) standard... to
specify that anything to the right of the '--' specifies a set of
things (files, commands, other objects). I think it works with the
perl getopts as well as most basic shell opts (rm, mv, ... )

   @

On Wed, Nov 06, 2002 at 06:02:21PM -0600, Jim Crumley wrote:
> 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
> _______________________________________________
> Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list

-- 
Aaron Thompson
Unix Systems Administrator
College of Natural Science
University of Northern Iowa