Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How can I avoid completion using chkconfig on RHEL10?



Hello.  I have installed a RHEL10 system, and installed zsh 5.9 onto it.  When trying to complete options for the “service” command, I am prompted whether I want to install “chkconfig”.

cross2@build2 ~  service autoInstall package 'chkconfig' to provide command 'chkconfig'? [N/y] 

Install package 'chkconfig' to provide command 'chkconfig'? [N/y] 

cross2@build2 ~  service auto



Looking into this, I find that the definition of _service in zsh’s supplied functions includes a call, when not on FreeBSD, to “chkconfig” without ever validating that it exists.

Google AI says this is a tool "used in older Linux distributions”, although I also see it documented recently on the net.  But, certainly in the case of the RHEL10-based system I’m on, there isn’t such a thing.  The thinking seems to be that more recent systems use “systemctl” for this, which does make sense.

Anyway.  Has this changed already in more recent versions, and if not, I think it should.  It should at least confirm that chkconfig is an installed command before invoking it.

Thanks.

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Messages sorted by: Reverse Date, Date, Thread, Author