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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9533 invoked from network); 21 Nov 2020 21:08:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Nov 2020 21:08:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605992939; b=OR64QRIbcJx1avfIRwiYWW9uRPULHIQnMfzy5Q4PcIcOCHzwBSFYurmb8lBR19FHWrlmqMb6S0 q6hVNrSpIzhXTi+A5GmYht4JdBlJf00/LgK92qG4CogHMKmFLajj/BsZR0qSwJSFKy+zOAVp4y d7Pc63OmICtcHfdVC1gCtqdSjSgoaKEOe6aj52EodAvwhELJWPb/ctYxPRh4+q0WTxLba8EzMB iNbA2Dn0ftogGxtQyMkMn1ya8p9wOfU5bqZWca4FRC5oYmKCbjo8OIZjXFQPgzDPl2R1uNgSop L93QQXppJCmFukTe8iMRbZ9BQFxcAhYWioGPmcJkHHhong==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wm1-f53.google.com) smtp.remote-ip=209.85.128.53; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605992939; bh=s2K78TrKMIZ1L43sA4REizLggOrEJYNyifWZWXseouo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=r71gfmxXWhqSMau8bTX8ytt3sx/V3UDb3ollcWOPsq8+STyKE7saHxUMu2+DXe0Ii7Azc73bOD FX6y4xto/tx4qzqWanR/Lur7LtTZxL8FyjcMXOC1Wk6M4UOTRMQuTarMf9AWhGADw9ZJ8r1N2I hjPi4l5/tE/E/au+mAO54/TUKiebQH98oo7sZLEkS9civaqqbYooXQmLG8G5hMEovwL8rCAbv6 BEt6hxvaK6POQzaHNasGF27h32FH3c6bJk8o00HpB+jXXfQNA76e62Dn5ZXnjD8cuPYc8idRRy Hp5X+gDcir2tqb1UniD/fnXjKI3oirThBQC+xShEro+I6w==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=bfmhW4HPM5xUj7hrm+PRoKh4y3d7t+JR0zZZD6IsEe4=; b=ogbcBe8gyxJNy/+O4N5tS2HuoX arpMiyJNoPD95cuSRpxlO9MEMToz8g86+IZpi0fyT2kqXH27J7nu87vYAgmugG/X/1VfFb8NAMeWD 63BiQyDH7IV8CpPETnLkqa7WWQg9NHTb7tO1+JaqGH+VL1PN5XnrsuLzxJ5y3FTuCOZcS5WqvObbz q3RmXGdJvFEOra5UYvpYTgWw1I7/WN4HZBLBJEYxYPjho7swCjPP0t/Vgpdi5AWnsCd/ihAn0sXha tA580hzRr7hePYDqdBGUZpFaeTh75tegHkM1QZbHYelryGrIINFLk+Ywe2VTDcrK6d0g9YeQntH7S ntV079nw==; Received: from authenticated user by zero.zsh.org with local id 1kga7s-000MKq-6l; Sat, 21 Nov 2020 21:08:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wm1-f53.google.com) smtp.remote-ip=209.85.128.53; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wm1-f53.google.com ([209.85.128.53]:35719) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kga7f-000MBt-JS; Sat, 21 Nov 2020 21:08:44 +0000 Received: by mail-wm1-f53.google.com with SMTP id w24so13691673wmi.0 for ; Sat, 21 Nov 2020 13:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bfmhW4HPM5xUj7hrm+PRoKh4y3d7t+JR0zZZD6IsEe4=; b=d4XmNetuX0RUdWWVTj/iBx4mmE/9WsnaMkYBetKOEOyVpyr694rY7tUXSLgcnp1meo I6h9UFm+zGKyN5K4zpvyPaNRbApHfHB0a7bvfbwcXMm1kcdqyZbaWEl5V0jINZZE9Nul cdsnM8HulLOqHHZ3CNe6Dhysy14BssOqmBESBzexbPhyWRB57TZ61ZX+jo2dEONPDzbs QR3i68V8xlOJL/Eso0PEt3SPMFmp2dI+eHqSvakmxZMuLuJxGZOJMcgtZiJDPmL9d0dg 9HiGO2bfcsnveDlb3BwLaq27vGtmj5G8m7M72qw63ApHFVOD/gsttoIUuevq+RLgzFYJ zOOA== 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:content-transfer-encoding; bh=bfmhW4HPM5xUj7hrm+PRoKh4y3d7t+JR0zZZD6IsEe4=; b=fkMH7ba8ThngFe2URNwIqur6C7Qtrl6dJstVWyjfMz72xICQGW/14KIZcqUqT8uG45 bkTb2K1BHByMAUNUPraNFOC8O79eWNoUBlfupQgmOnvFokr+ZQv8P/uwMeF9457WF5xa QbREus9yus+W0ng2O0O1CEjHdkEktU5gAtRs83Da39cKcXLIQHktzRBAks6bBc+Cfub+ Y2EiuZu4SoUZJaAaxQOpc33utHlNnjhQT6zxPXPneY4/jagh0PztY35mejG/FOVaqN+U spmR0HAU/01cFOzzNuiww/qVVHd+u3giea30pAzpcNPId6DBiZ8AI8SZlyupt7m5Bx0Q uZzQ== X-Gm-Message-State: AOAM532MoKVF1EdvitMTOsds9qODDyxqUVu2M8BpRH8sL/cTjDcxmT6c kzzwXjmzf75s09g0GY8+v1yKllSBmHHbnR6vnDTnIiwNrV8= X-Google-Smtp-Source: ABdhPJyPI7eRwSqAxxjUZCP2Ooz+cUTU0f6I2F4H0ge8GuAyrzIuMB7IDzIOdIqY376d6JAgGJ/iAavVAxqz3lV4Y38= X-Received: by 2002:a1c:f619:: with SMTP id w25mr16252262wmc.55.1605992923190; Sat, 21 Nov 2020 13:08:43 -0800 (PST) MIME-Version: 1.0 References: <69b1ff42-3e60-4b40-8514-9bb0690eb250@www.fastmail.com> In-Reply-To: <69b1ff42-3e60-4b40-8514-9bb0690eb250@www.fastmail.com> From: Felipe Contreras Date: Sat, 21 Nov 2020 15:08:32 -0600 Message-ID: Subject: Re: Bug in completion with curly braces? To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 47586 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: Archived-At: On Sat, Nov 21, 2020 at 9:29 AM Daniel Shahaf wrot= e: > Consequently, brace expansion is presumably attempted for the same > reason it s attempted when the words don't contain braces. E.g., after > =C2=ABcompadd -Q bar baz=C2=BB followed by =C2=ABfoo ba{=C2=BB, it o= ffers =C2=ABr=C2=BB and =C2=ABz=C2=BB > as completions, which let you build up =C2=AB{bar,baz}=C2=BB and =C2=AB{b= az,bar}=C2=BB > respectively. Similarly, given =C2=ABstash@{=C2=BB, it presumably t= akes the > brace for the start of a brace expansion, and the analogous construct > which that behaviour lets you build up is =C2=ABstash@{\{0\},\{1\}}=C2=BB= or > =C2=ABstash@{\{1\},\{0\}}=C2=BB =E2=80=94 except that when you press a second time, > the newly-inserted brace is once again inserted unescaped, which > presumably gets handled as the start of a nested brace expansion. But zle knows { is part of the completions, that's the reason why it's adding it after a ... It's adding precisely the thing that was just typed. > You can probably just remove the -Q. I can't. --=20 Felipe Contreras