Re: A simple hate today.

[prev] [thread] [next] [lurker] [Date index for 2006/05/26]

From: jrodman
Subject: Re: A simple hate today.
Date: 13:50 on 26 May 2006
On Fri, May 26, 2006 at 02:04:53PM +0200, H.Merijn Brand wrote:
> On Fri, 26 May 2006 03:35:44 -0700, jrodman@xxxx.xxxxxxxxxx.xxx 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 <juerd@xxxxxxxxxxx.xx> 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
There's stuff above here

Generated at 09:00 on 29 May 2006 by mariachi 0.52