On Fri, May 26, 2006 at 05:50:05AM -0700, [email protected] wrote:
> On Fri, May 26, 2006 at 02:04:53PM +0200, H.Merijn Brand wrote:
> > On Fri, 26 May 2006 03:35:44 -0700, [email protected] 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 <[email protected]> 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.


I disagree.

If you use 'rm', you ought to be aware of the '-r' option. If you've 
choosen to use a shell that expands '-?' for you, and you choose to use
'-?' unquoted, and get bitten, well, boohoo. I don't find that hateful.




Abigail

Attachment: pgprGXBOxdgJw.pgp
Description: PGP signature

Reply via email to