Re: oddities in /sbin/service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux