Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _pick_variant
- X-seq: zsh-users 26160
- From: Thomas Lauer <thomas.lauer@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: _pick_variant
- Date: Fri, 13 Nov 2020 09:34:43 +0000
- Archived-at: <https://zsh.org/users/26160>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-11/20201113093443.afd8d11e641eedb409c2ee37%40virgin.net>
- Authentication-results: zsh.org; iprev=pass (know-smtprelay-omc-7.server.virginmedia.net) smtp.remote-ip=80.0.253.71; dkim=pass header.d=virgin.net header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=virgin.net; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virgin.net; s=meg.feb2017; t=1605260086; bh=7yEY25hnvKUgKhvSsbzvkV+zb8xbMgKpDBeWC020DuM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=IE26qeVWHWf0RMFNc3CKvcmsaBwJif/n8+pF11vgcqHUFXaFRLu3NjNLYzedmX75o oGfv8Qv+AjtflmQ+vONqj/s0M3NZYBEYPIHQ8KsvoIdPBHm13HSMvyvTY3jj+99P6k NA7lJ27rmi1QnQpvmyrTBHRsg5QEfd1/8Fh1R0Hsqgl8Zk9KVkheuL4c74cb/MDyIW 1xbTTE/k+jiYMJcYROym78VesKsrVwdrv1HSXM25/Dg3c+7GWCp1MaQSIUQKOitP9M iYZ2RpN3Un5WxhRaSGjsIfN0jiMJ6mBMmWA176Q9DkUMSEuA6p/kGGbk4wWTTA0oO0 HT03hEfvzi5ew==
- In-reply-to: <CAH+w=7aD09dOMmUHkWZneSEjp0t7S1eWhJx6sc7LBxWqGmP8Ow@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <20201113174124.cb440e381388179852e48c62@virgin.net> <CAH+w=7aD09dOMmUHkWZneSEjp0t7S1eWhJx6sc7LBxWqGmP8Ow@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
On Thu, 12 Nov 2020 10:35:05 -0800 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Nov 12, 2020 at 9:41 AM Thomas Lauer <thomas.lauer@xxxxxxxxxx>
> wrote:
>
> >
> > This works as expected. However, if I rename it to md5() { ... }, zsh
> > hangs when I type
> > md5 a<tab> to expand a filename.
> >
>
> Zsh is invoking the completion for the system default "md5" command
> (sometimes found as /sbin/md5). That completion attempts to run "md5
> --version" to find out whether it is completing for GNU md5 or some other
> variant.
There's no md5 command anywhere on my system. I have md5{sum,pass} and that's it.
> Your function doesn't handle that, and invokes xclip in the
> background, which hangs.
Well, the quick solution is to change the name, as I did. However, when you say my "function doesn't handle that" this seems to imply that there's a way it could handle that situation. How?
And THX for the response.
--
Tom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author