oddities in /sbin/service

Robert P. J. Day rpjday at mindspring.com
Mon Nov 20 14:30:19 UTC 2006


On Mon, 20 Nov 2006, James Wilkinson wrote:

> Robert P. J. Day wrote:
> >   first, as an exercise for the reader, what is so amusing about
> > *this* snippet of script:
> >
> >
> >     case "${1}" in
> >       --help | -h | --h* )
>
> Jeff Vian wrote:
>
> > As standard syntax for the case statement I don't see anything
> > funny. Please enlighten us.
>
> Well, one could argue that the --help was superfluous, given that it
> would have been caught by the --h*, but it does help document what
> the option *means*.

that's what i was referring to, of course.  i would think that the
"--h*" is overkill in this situation.  i mean, do you really want to
be *that* forgiving?

rday




More information about the fedora-list mailing list