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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30398 invoked from network); 4 May 2023 07:53:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 May 2023 07:53:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1683186805; b=NZEKx56RAqVHnPykHQLl655OmQApeoCqNo8vGuRb87kpWzmqeZtRsu7ypyy60a3OjBa4zhoA+d noZiblVOJ3crMeqUyTsohAE6MokYJblrxzOUbEuSw7ABQfJFpz9rU485+aOr9zJuE2nm4qFevQ yV30pY7imdKLBWQqaewapYXM/PQmLQ4ZWc6uQhbQG5bpl5ffaHztTBF28e8I2bD2VRuX7/5PIm k5KdhwvR42DrBOb0zwtvI509JVIIosNo0vgomiy8Rz78JX1LMRLmI0o7sF875vMfh6xJrSbsQ0 1YesFyQkYF8EyGEyb3KhYOlpTC7A5FeeuHwWJjqfIn4xeQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-vk1-f177.google.com) smtp.remote-ip=209.85.221.177; dmarc=none header.from=axnet.nu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1683186805; bh=0/Z+Viq5yQLp+2j3V0LkIQkZzeF2f0PxSMrhVhzFL6M=; 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; b=iqNmbbCu2xK7Ei6bIM/59n0dx3n0x/KqQKDwKkCX3YAPLqmqgWqV/mVEZPjoufXwhaXBRYBt/1 mMexgyhAYFhR8zs3HLlhhcAy16K4wK0rqfNz1qSNNoe6L/KW82AKN5o0lLg8oETGEHsCr8Ytyq EKUeJUkCZFsr4C1uCp3E4P+uhJihaCyRoRgqPXpqzGP/MOiFKjHJzXEJCbPATAjP5Gv92+J7Wn XlwqmLjzkGY4PltaWnRw+aKUBSQb1b0P2nOVimVQMhoTSUOXFgs3VZyR/5fQ/76i3t9r+WRAfw SElOuFQmEVfODN3RLq4ufIhxVPAU+YCyRCqmK6hs5JWUAg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; 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=Fredb2OlPJdkfYIlT6qqZIgNWw6MlHlOzAJax6p2Ju0=; b=A0GH1McIyBbu4S345TCJJJgQs9 ZLH00p4aUcaKpLz9F7fQct2QxyTPuX6BNOVOHd0iinmHbLICXBxb6OLYTjdb8AsCBTst1xJPRQteb +Rc8+szpI5OUvLRYtZ8n/DyqJVnivm3Ah782DhDAQAU+e1jWPh+FDUEGWebcG2l+8A5Dx7yJjTYYU ++aO+hQ2iFY4GmtglB/5d1huI8TK6PunCvsK1H99nIC1I23vrbl5Ac/Mr6ksz1iIzx6qmyY6H/pRF sRS2BTq0ZpzW7XLUtUGi9ha7GQWJ7akdbeSA3Uyv6YUKK3EQUK6iD6zLPq43CRyIcXr2HLYdM4JzG W+Edv7Hw==; Received: by zero.zsh.org with local id 1puTmG-000LlE-Qv; Thu, 04 May 2023 07:53:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-vk1-f177.google.com) smtp.remote-ip=209.85.221.177; dmarc=none header.from=axnet.nu; arc=none Received: from mail-vk1-f177.google.com ([209.85.221.177]:56506) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1puTlN-000L3r-Oa; Thu, 04 May 2023 07:52:32 +0000 Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-44fa585ad7aso145886e0c.0; Thu, 04 May 2023 00:52:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683186748; x=1685778748; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fredb2OlPJdkfYIlT6qqZIgNWw6MlHlOzAJax6p2Ju0=; b=ODB9tR0+TUXGVRNB77l7efCeg/6ktr4qvbh9ff0yDNAbMpPExkwYoNcXJdGN25hOZ6 pfF0eIb7u0hqX1BnS7E1Na1axYJO6g24QOer4mPWTo5Y7FcPmHLPavB0WIL5Ph4OD/Z5 E3i/C2maCpZUlmPrAwCQNrUPbu3zXfRhgSrgUIcSB13v9iIw0k8d3/VrRfeToCHwW1od bJHLu+bPURCJWtlHMLQa9dYg4CoKJPhUR914D40Aj/DZVR0Pyz0ScVzcCeqVKvwHHISZ kneigHyIPPug0AEvjNghmLoJjN0KCItE+LoFa6fXi1EkLWkpk7E7aBiz7wYJ/abxZit8 mYsg== X-Gm-Message-State: AC+VfDyUqYDggYwNKi3RbbAjof5Bm4PWTX47hPxX6wDXpZsYZ0XCobHt cpxNZrTWefaoMkAe86YLjEcqbBRAj4ktWh12LAk= X-Google-Smtp-Source: ACHHUZ57vfZlPKAmNNHQJx0PG+jnYMftrv/ekKf/tFx9KI17zDhbjF5y3IX3/XhLT2Lr4mdGY48ZuUl+f/e8EQYOtAk= X-Received: by 2002:a1f:d8c4:0:b0:440:3c57:4789 with SMTP id p187-20020a1fd8c4000000b004403c574789mr9450133vkg.6.1683186748391; Thu, 04 May 2023 00:52:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fredrik Ax Date: Thu, 4 May 2023 09:52:17 +0200 Message-ID: Subject: Re: completion ( compctl ) does not trigger for command names containing dashes To: Bart Schaefer Cc: Fredrik Ax , zsh-users@zsh.org, zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000003a86fa05fad9741d" X-Seq: 29072 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: --0000000000003a86fa05fad9741d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable thx I'll give it a shoot Den ons 3 maj 2023 kl 19:13 skrev Bart Schaefer = : > On Wed, May 3, 2023 at 2:59=E2=80=AFAM Fredrik Ax wrot= e: > > > > zshprompt% compctl -k '(arg1 arg2 arg3)' with-dash > > > > # typing 'with-dash ' and hitting [Tab] once: > > zshprompt% with-dash > > file2.txt myfile1.txt > > This dates back to the tokenization of hyphens to fix bugs in [a-z] > types of patterns. The ancient code in compctl is using the raw > command string and therefore looking for completions for > $'with\233-dash' rather than 'with-dash'. > > See if this (attached) fixes it without breaking anything else. > --0000000000003a86fa05fad9741d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
thx I'll give it a shoot

Den ons 3 maj 2023 kl 19:1= 3 skrev Bart Schaefer <scha= efer@brasslantern.com>:
On Wed, May 3, 2023 at 2:59=E2=80=AFAM Fredrik Ax <fredrik@axnet.nu> wr= ote:
>
> zshprompt% compctl -k '(arg1 arg2 arg3)' with-dash
>
> # typing 'with-dash ' and hitting [Tab] once:
> zshprompt% with-dash
> file2.txt=C2=A0 =C2=A0 myfile1.txt

This dates back to the tokenization of hyphens to fix bugs in [a-z]
types of patterns.=C2=A0 The ancient code in compctl is using the raw
command string and therefore looking for completions for
$'with\233-dash' rather than 'with-dash'.

See if this (attached) fixes it without breaking anything else.
--0000000000003a86fa05fad9741d--