/etc/init.d in the default $PATH ?

Jeffrey C. Ollie jeff at ocjtech.us
Sun Jan 28 05:23:01 UTC 2007


On Sat, 2007-01-27 at 21:09 -0800, Florin Andrei wrote:
> Mike McGrath wrote:
> > On 1/27/07, Florin Andrei <florin at andrei.myip.org> wrote:
> >> So, what it the rationale for /etc/init.d not being in the default
> >> $PATH, for root at least?
> > 
> > because "/sbin/service" is...
> 
> I know what you mean, but TAB completion doesn't work on the service 
> name when using /sbin/service

One problem is that many of the init scripts have names that conflict
with programs on the path.  For example, if you type "sshd", are you
running the binary in /usr/sbin or are you running the init script
in /etc/init.d?  There are numerous other examples.

As far as TAB completion goes, take a look at bash-completion in Extras.

Jeff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20070127/5bbb985a/attachment-0002.bin 


More information about the devel mailing list