From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6493 invoked from network); 12 Nov 2020 18:35:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Nov 2020 18:35:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605206150; b=NVQBwX6L9C4b6XlpN8ZSwKAHdkPt4QG1+91kNE86CHCXuTXcFmUgh9eLHTrcUnbBVCXBfzyAYD 5aJ2p1XFDCLPrXChwekPFz6IM6uFe8bdKGGIW2HDX6RwWE914HyJ1WfqS2yU+dOe1UVUIC5PDH GGMp1/+MaUxRfWoJ8Qm6ZFIG0aMLmMZyoF1ZCyoq9Oum3j+xw9jNOpogWBjTMAyi7PUEaLSVZz 2c0HCSagU+Oa3uXq4vv0ljSZbNlm8G3+4yyXF9kUyUX1x6Nc8L6xdBLwCnEYqwR5oXn7jrpKKH QcGbn6v4flSuVzo59S4Tw4PBkNTV+r4jhflsPknwfW2AMw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f54.google.com) smtp.remote-ip=209.85.210.54; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605206150; bh=fjgbMrevl/qUa3IQoI3d1KSoUUckILSYKAxRe5vVo2s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=cGdTheZJI94hZqBDXr6Q3TrjO/s/FISL4guTDI5cpeG7ukI2vZiiKiPIniS520x1/qCJmjZk4r kBftf5Mk8TDsUQOPOZ8NAi/U0g9IxtFW6ZCLhDmL7GmU/xUNaAmJMwBchE4VyZer0JykBaLXH5 sFIoWVjrQvKGpqNsxNO8kVOQ1aD4SuH0B54sqrnkg/P6xYq96Et45N/tk9O6/yFWg22HoC1SYN DU7UivCjUiynkcEqjsXFN3agh3tztSL0O0tfp6y9h0ggZg59GoD0eDgaDrcSUh2Yjo4hWeO1I5 W3mgnBzilMz4+s9cYZwsl+G1RpDjWraxh17QalnHkkTeqA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lrLkcYVHRIvTN3hpYhgxRTzsa7tYsYwr4dLFlTXUBYU=; b=ohSzUXSyApODAgUQD0522/gc+A KHZnEF+IwJBDHgvM0JolzLCSkb+hYLNdd2MGbGZfcdQAGaIWqKiuSOJjOB+iVWeXfLl43a4DfWu1y FEZ/zZ2v7wThnQM87ZhEO6mXNCxOovDQ0MqFTxl7wyhjb+zGyXpXPijhVzI6vP7vS4fux/Ob7mnlK Op/0EOG6Y1vmPXOz6xFHXvO/7wehxF4YjezPhaD5RYU9Fmv1elr/q8tiOjt/XW8yq7x0HCdZP3Yqc niOvbDq50JiuKNehbB9ygBdCKSPAQxw3PjKfIXxtHFW/m4KTTHa6SZ5pWo143xB/RVjs+NTlljST3 OnmD9W7Q==; Received: from authenticated user by zero.zsh.org with local id 1kdHRj-000Lt6-BI; Thu, 12 Nov 2020 18:35:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f54.google.com) smtp.remote-ip=209.85.210.54; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f54.google.com ([209.85.210.54]:38064) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kdHRF-000LWG-8Z; Thu, 12 Nov 2020 18:35:18 +0000 Received: by mail-ot1-f54.google.com with SMTP id a15so6574914otf.5 for ; Thu, 12 Nov 2020 10:35:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lrLkcYVHRIvTN3hpYhgxRTzsa7tYsYwr4dLFlTXUBYU=; b=s4+SKAhRbXyzzXSV5BGegTfWv6Bm/aSGusyG/Wd3kU4+BUqMVHRoxqLRIbskjInNaU 9m58+0y/8tfsB3Joiso7/yCyfO7T/caLaJa0EESnoEciYE1EuUX0lUUeJ/iW7uHlChCB tsP6+3TqXzek+cjO56C8+QKMKdB4fjZ7K8tC6BuwUstCEsE9ohRPiNjK+Bgn5BGxcE2n LZdCIN56x3J89VcttajiYG3/SQzlkdcL04LH3DOtODPfhi4+WmStU7BIF7KplThzWK0h 22mthQT51sHZcioknWBO3MGvCoeAFN75MXx/WZ8wIrqwZZERuq9C78yvWGywNCqi+lli CmiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lrLkcYVHRIvTN3hpYhgxRTzsa7tYsYwr4dLFlTXUBYU=; b=LcgHItg8KuK9I/rXPPzXLc5K39403bHF7zjm8XsIOs94dxcJ7wIAP8HIefunOWF6B6 yFii/XHLgy9vkbx4aM0Q7mt1P7JB0Ll+xHbxPmopNav4WOrxCuQNwrkh8c5TJtJ3HU1l jRUXkeM6RUhLEZU7DKvPXK7HRsVkuw+66gWY7+4rFjR2Im8zw7MEenSwVag6/UTODAbh +5UpT1PlU3ZH2vtgq+WdLAHGJh1GwyxYGgdnnXk0/VXkEFIdLiNTfudjDQ4db4LHg6rF +TpirEzPZ54m1tyEWVJC8H4u1RtCtO5bl5BxoLEvcrHfspJhf1v+behd4X1r4ev1BMEa oHaw== X-Gm-Message-State: AOAM531dEFXPufYQl15enRy1b+g8qhwXP/q1Qn+OnmiZUNj21caPTsxx ZaMHbHK3c4wdXSvW3gP5n8XCYfBveebbeOpOZ+lkiA== X-Google-Smtp-Source: ABdhPJwc3gAR9S6GAc38z4bfadqz8pjQEkAtRKaCD8zhmQb9mgDK38j/3Uvykm4cY8SWzhwAK3NLuegeIsYs905Uabc= X-Received: by 2002:a9d:470c:: with SMTP id a12mr399421otf.161.1605206115895; Thu, 12 Nov 2020 10:35:15 -0800 (PST) MIME-Version: 1.0 References: <20201113174124.cb440e381388179852e48c62@virgin.net> In-Reply-To: <20201113174124.cb440e381388179852e48c62@virgin.net> From: Bart Schaefer Date: Thu, 12 Nov 2020 10:35:05 -0800 Message-ID: Subject: Re: _pick_variant To: Thomas Lauer Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000545e5505b3ed2c38" X-Seq: 26153 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000545e5505b3ed2c38 Content-Type: text/plain; charset="UTF-8" On Thu, Nov 12, 2020 at 9:41 AM Thomas Lauer wrote: > > This works as expected. However, if I rename it to md5() { ... }, zsh > hangs when I type > md5 a 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. Your function doesn't handle that, and invokes xclip in the background, which hangs. --000000000000545e5505b3ed2c38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable