Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How can I avoid completion using chkconfig on RHEL10?
- X-seq: zsh-users 30456
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, "Chris Ross (cross2)" <cross2@xxxxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>, "cross+zsh@xxxxxxxxxx" <cross+zsh@xxxxxxxxxx>
- Subject: Re: How can I avoid completion using chkconfig on RHEL10?
- Date: Wed, 25 Feb 2026 09:11:14 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4dNF5jknVDa+Tk7h8fXAQgCyykT/LqlRkmvinYh+NE0=; fh=NmjwDttBtmd9dAe+5p/1s9i/NjtRJcpC+9xIHGhcvxc=; b=WP8th30gVuVEnsMNCsqEbDJ0nVaNTNRZS8NRDwopL1irk1BLJVOSka8gpQW3NajFSi 3GnuNN78NHTELRiLaz0V6vSsMHq+ui2kDEUGhVaasUB7ywYYgvp5fZVJGjA6wIZzjFAL Y5IhUO6l2yqPF2A5FZ66T9xOm4y9EoldLxcglPdcchNmImHXnrj3aPEnuwTTbrsgr/pc M47IOo2wzqOoIZ6t7w93ijT9FGMYCoVIWsMe8X17vMYIOjrSslXckH2aHkDo5FOS/xGw BAb34hlZ7DQtVlKtpt7m0bJhYgN1gc4Vxfv/144HzyX+OhQvREGCl2wBv8H2Hgj2cn0/ /lDw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1772007085; cv=none; d=google.com; s=arc-20240605; b=X34v/uCJ7cUiEKF9PYzJKtVApscd9f6R6nmj2Ag57HQLpcT1A5SdAiMsIq51VQecjR SFBD15e9Ecfgx/Im0sHd4xAxSrP8zFvvLMz7gq3ow3+Ek3vYPAQVWqm3WEgExAp89E2m kPwUIiHt2vTiRZoQnSSUnHrv6M8VljzC9isOjhG7E6Acv20DUoGnSqCJzM0U7POh3EKf kgWSNubnvTzKw1OIp8aivfcHt165bxbuurUmw979qZg/89MujDEl2+lRx78HLeZn2QMc mtF62b267RftQNp3NWeqJV4qXfhgosDO7MPPbFVj0yCY1s9FM6L5zj9xTmSzG8vlwQrq T2oQ==
- Archived-at: <https://zsh.org/users/30456>
- In-reply-to: <77855-1771974212.353504@Z6Di.g0Ew._C81>
- List-id: <zsh-users.zsh.org>
- References: <MN2PR11MB46456B1DD259744AFBA2F3858C74A@MN2PR11MB4645.namprd11.prod.outlook.com> <CAH+w=7bPFYC4OYFo1wHhGX1dg2nG7LMAKGcui1EYizo-LUW7-Q@mail.gmail.com> <77855-1771974212.353504@Z6Di.g0Ew._C81>
On Wed, Feb 25, 2026 at 12:04 AM Oliver Kiddle <opk@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author