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 30457
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Cc: "cross+zsh@xxxxxxxxxx" <cross+zsh@xxxxxxxxxx>
- Subject: Re: How can I avoid completion using chkconfig on RHEL10?
- Date: Wed, 25 Feb 2026 09:22:47 -0800
- 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=ETNls6WxyPo17Q8MVJeacriyHwPzpOriknC5E3HwUHY=; fh=RQUqy5BkEkt0NKxzgXc252WVkIbScEiymkdWKknhYlw=; b=Mm8AILSwGDUrbY/KRED5ovOEjaEFReDiDl1BC5gmXDZ3LxXf04kob53Nv+EDYqZZ/3 1RTu6DwYGqLH+HZPI//XPlpgZbPNLfW1YuYT3f7PK55dxYfiSZwXMgD34iNOK92g2y1U T6qo9G90AvGvR52/drkFwDqUKisQcAgg5A/+Lo3Wp0DJ8Nqj96kyF2qUydHKFjytMHM/ eyb+ZlQbEEYi5QM0X9+EzapDa6pSwhKbF1l0ckT/1I6DKiyAOcIxScVElndg9VSRtEGv r5Xq5DKLHOGZti9zeokRp1G3b6gv4dCCJCsNkrO3WqrhGrQQYEZAti6ldFmNOeQxTNZi d4bA==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1772040179; cv=none; d=google.com; s=arc-20240605; b=EbNPbr+XztvVkYkHD5pJzGiUz976bf+v3qDPC6qakj7XkSEz6NOE3rd4Hjn+Gih+rd m6mbQZ9C+Jho2+TnYIk837v7/iaYea51nhAkeiWnb6IHNZae0RcFLtsltKf74GlhcwQX fGCaI+hhasKRMV+datJtyMYCnuomFja0Y4f9nYrnq5bAZ0/3227xEPaQu/E5HTUGIuQh +H+fQyLGJhHVl3deJ1ba7oQh4HVtJDqer/4gGfdLVkx332m7jmRHv5mtWwcBRRWp9nF5 NUyChaQASvhAkazzGWYNTTdkDpE6TMpgpgtGCr7i1dtdS8zLL9v0NI0i9kPuqwg715hH Fk7w==
- Archived-at: <https://zsh.org/users/30457>
- 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 Tue, Feb 24, 2026 at 3:03 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> The main problem here is that command_not_found_handler() is apparently
> run for the chkconfig command and produces output regardless of the
> /dev/null redirections.
Really? That would be a bug in itself, command_not_found_handler is
supposed to run after forking.
% command_not_found_handler() { print OOPS }
% thisisnotacommand
OOPS
% thisisnotacommand > /dev/null 2>&1
% echo $?
0
% command_not_found_handler() { print OOPS; return 127 }
% thisisnotacommand > /dev/null 2>&1
% echo $?
127
So the actual problem could be that the command_not_found_handler
function is returning zero, making it appear to the "if" that
chckconfig works when in fact it does not.
> Can or should it be disabled for the completion system? What
> about for all functions?
It probably should be disabled in completion. No opinion on other contexts.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author