Re: oddities in /sbin/service

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

 



On Sat, 18 Nov 2006, Mikkel L. Ellertson wrote:

> Robert P. J. Day wrote:

... snip ...

> >   also, based on the structure of the main argument processing loop,
> > you can invoke service in some weird ways:
> >
> >   $ service httpd --version
> >   service ver. 0.91
> >
> > where you can see that the first argument of service name "httpd" is
> > superseded by "--version".  is that by design?  just curious.
> >
> > rday
> >
> I would think it is. I believe that is standard behavior for most of
> the commands. If you have the --version argument, it displays the
> version information and exits.

no.  consider the differing output from the following invocations:

  $ ps aux
  $ ps --version
  $ ps aux --version

it may be that the result of doing something like

  # service httpd status --version

was deliberately designed that way, but it's certainly less than
intuitive.

in any event, the only point i was making was that, in using
/sbin/service as a sample script to show some people how scripts work,
even those people who had never seen a script before took a look at
the logic of that utility and were thinking, "what the hell ..."

rday

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux