On Fri, May 26, 2006 at 02:04:53PM +0200, H.Merijn Brand wrote:
> On Fri, 26 May 2006 03:35:44 -0700, jrod...@hate.spamportal.net wrote:
> 
> > On Thu, May 25, 2006 at 09:46:46PM +0200, H.Merijn Brand wrote:
> > > On Thu, 25 May 2006 21:37:55 +0200, Juerd <ju...@convolution.nl> wrote:
> > > 
> > > > Chris Devers skribis 2006-05-25 15:28 (-0400):
> > > > > There's a simple solution to this, of course.
> > > > > For all defined single-letter options, handle them appropriately.
> > > > > For all undefined single-letter options, return with help details.
> > > > 
> > > > -? is still dangerous:
> > > > 
> > > >     touch -- -r
> > > >     foo -?
> > > 
> > > Your fault, core dumped.
> > 
> > Here, let me plant a bomb on our shared computer:
> > 
> >     touch /tmp/-r
> > 
> > It may take a long time to go off, but if it does, I guess that's your
> > fault too?
> 
> No it's yours. *YOU* planted the bomb.

Thanks for connecting the dots.  The user gets screwed and it's not
their fault, and they are exposed by this dumb -? pattern.

Hate.

-josh

Reply via email to