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=unavailable autolearn_force=no version=3.4.4 Received: (qmail 30520 invoked from network); 4 May 2023 07:55:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 May 2023 07:55:13 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1683186914; b=WaFgKZYM5Hmg2Lucx2RKS0GpI1TYU8Q5ehcQ6HUKE/54lOHEfcaQhdd1fjfe8+NqojXh7fkGLL iQA+Rmmt/ssIABaEQhLzYhE9mf/PfIwugr1LhIfyt/uDIIlpovxKhW4FnU3kwLy0itS0U8y426 hTguxR2GQd8UnvHuXagpHxLy7Lh74P2NHJdhg72Hit2l9PO7G9aaw6RU1kUQ60khTiaBcSvgq7 J67iPNF7XUGXRw4QzpjDhqfj3G2OsCFF7Y2xl+pWLMS8Oz9e+MimMlDsXK6gS0GhFmFx9Y5JDI MEsKAYGTk4jXUIe7Yi39JYOY/CWWPgf6o2+72rja3HbxZA==; 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=1683186914; 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=LEmQBARQpXwRxv4TLzL76uEuPEVtdb3HggsdjR2xGZp6C/d1Ch2Qui+Fm6LJ/x4LbaNLVOv1OZ 4PT+B8FWGZ+qvFxXHIEahBQ1t5s469UbKKRbSFi255L8KMV7Grrs5f020vdtro0V19+r/omUh7 jG8Wh3aWRkisjRrvjT7wKBpx/r/TCjcBbE6cLd5aHC4o4QjWdjF3tQCZXTqxhzK9OMuOts2mU6 qUzg10wkeYmdi0J95hP4LndBnrweZqCGZMd+qRLLaefSsIjqWhXDxYBKMPjWA2Fq90kX+S5mPr 2swF0H0uEtzKqNXi11IZwG/RUV35DjOBiq1PA/bzeQNPPQ==; 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=ENqa5WO3Y80aZA+P4G5mjgSTlp Zm/bvN9CV5V+a3G5hwY35Pwd/g3G4uNyfscm9rF6u5TWtUGV6pLWMZJ+PsAh0aY12OYroMzyLduFz Zw5yvJIak56eX7co8UaQrk7bLWOJ/CwpB3zBoGi1Uhv2yzFvyV1jPsW8eght24RHnFtvBATfwJ2bS c7KhNsVT2dqkbc33zd+5Pe8pxj1hU+CjDahfwO93Hh4FgksOPxg9BW2YE6HA40rJaQxVe+oFSDGdC +oQDBQ1/MJscKC2Q0YXGxbYZB3ubGXI4wjUsADORdKNd7TPvYkMBlXFLvNzybr2RgJ1LsRCkXUh0+ 0yFlNfoA==; Received: by zero.zsh.org with local id 1puTo1-000MXp-Pm; Thu, 04 May 2023 07:55:13 +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: 51710 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-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--