Re: How can I avoid completion using chkconfig on RHEL10?
Roman Perepelitsa <[email protected]> Wed, 25 Feb 2026 09:11:14 +0100
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAN=4vMr=Os76HAGM5DY6FNTMAPm9AHU1JLbbD3P=_mrCK-bK3g@mail.gmail.com> |
On Wed, Feb 25, 2026 at 12:04 AM Oliver Kiddle <[email protected]> wrote: > > I'm not keen on wrapping every use of an external command in > completion with checks for the command, partly because of the > inherent race condition. For software in general, it is usually > better to just try and handle the errors as they occur than to > check first: chkconfig --list >/dev/null 2>&1 should fail silently. I always check for the existence of commands in public zsh code because command_not_found_handler can be very slow. On Debian, it can take over a second. Roman