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 12796 invoked from network); 8 Aug 2021 00:21:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Aug 2021 00:21:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628382063; b=JPT1CHgRy7HcJEsuEADc/7yq0Zqy5sviV142rDvNffYy4u8Mkyu/AnzuO89dYrwOWW2/KNIKti Bc7r/xvdJx+1t8OFiPlSZYU2Trsx6HDv6PNwAgb9tavruwWVdtrbiRmGsD/irLdl4jfqr9lCnR cErYl2SmKwnrm0HAYsBMklh9ffaFF5UyhJkn2SKfjM9V8A0DT1netA4UeH9iP08ZzZvF97L6Yl HQm3zv/9ToiexNE+/DmmNvxtEc8tbScdWhN3Zr7S7IXs5GivWYi5mFtcak6Us4lqGg07VNGmM3 w8RVHPORZKrdh6GZf73v6Ub6tRw4GDIHiUdO6Senr88bjw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-vs1-f48.google.com) smtp.remote-ip=209.85.217.48; 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-20210803; t=1628382063; bh=5wE2L63jx/KTsVzRlLoAG1ukSpcKNl2vcMiANkfU1RE=; 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:References:In-Reply-To:MIME-Version:DKIM-Signature: DKIM-Signature; b=lBfq7XhVaa3pJPVAidcdyuvwDlP73j3+uc2tJX8iQ5eLlpa4O7zQWFFjUidEDWBZgYVJJ85dGA 6fG57aEhoEA5RJDD/pyLkUYEB/sliiUhINifq9wrm1sr8SKInnQ0KQ8yD1wwXNNSw06QT5IiTK e7njqT332AiLuqM0ZgVo8mn3KWjLfgxhX8afhm8zHM2whH0P+kOFflC3gCQ9XMmMHHdWdR2rk1 JSrKWMukRPlY3Ef4mq3NXH4+igS0mhyAoUVvBn9RR/La6llfcIml1aEAEkzMpu+aXkdF6cQj7v hRvDidGR7CrRRWH2bNfXaW7zZEqHLbqv9+pf0Srq7CQe8g==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:References:In-Reply-To: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zRTE6pxTGgwBMcorBnHqOa51jFJROK0eY8o4W/rC8u4=; b=n0Q7G+DtqmZR33B+IEtu8R3IOt zQSIfpKjM6lzVA0Xea9+lBJ6okAvbPIsRJdBmZluSr4zOn5R5WQcmLJoRj+xvjISqllRasAXjw58T fU1EyePVO6FDFtEODdUp+pTrqulDOGcnSeS/vTptN0E3yLm/sFOfAQvAVPorJhA3p2QR+8Q2Fdwdn GpnARZOZCZg45oyrNC4RzDi6ptDAe3k28OiWqa1WO8zKHElIQi4uGvuzHqlPbhTKTKchJh1YB7GT+ L8KkND3TX3HyHnr7Es0wA9Yvi+RkYKakb9kgAVXtfPjTOgkg/3ANTq/fhjRHDTcknU8UOefoa9rFC x3UDv8jw==; Received: from authenticated user by zero.zsh.org with local id 1mCWYn-0005K7-Ap; Sun, 08 Aug 2021 00:21:01 +0000 Authentication-Results: zsh.org; iprev=pass (mail-vs1-f48.google.com) smtp.remote-ip=209.85.217.48; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-vs1-f48.google.com ([209.85.217.48]:39845) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mCWNG-0004Ih-LX; Sun, 08 Aug 2021 00:09:07 +0000 Received: by mail-vs1-f48.google.com with SMTP id bg4so7777388vsb.6 for ; Sat, 07 Aug 2021 17:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zRTE6pxTGgwBMcorBnHqOa51jFJROK0eY8o4W/rC8u4=; b=GRZ30Qb1aH9Ut/3szha6wFQzriPOL3pbU3RBR/QBnJMCcFE948NZf1FgGAlUF0WHDH 1el0iDYSlL6m1sNhTw4SIMjzLtZZT9XX/fjd2k6z0tB2lyJxHudj9P1fcTgOEphw6avk W/vkTMOi6Y9+L3ie3TPtZgklhHxm/oq+ZeFxdRwd4jKWEtIk1vCnCSqmkAy3AVWlB2Uk tRHIPIYt97Q9UPdHGgbSEuTfHH3dv51KNO+69DJEkuammON8PujvnNElLUgQc/uqqbLj 2/OrIJ498MBN8k5QY7ytJ0tSk+QEdeLdXGIvLYdafyZ+xOlOjhs5FGfrcq5GeRfZ3Tob mkVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zRTE6pxTGgwBMcorBnHqOa51jFJROK0eY8o4W/rC8u4=; b=JUm9aDIz+ncbL2Eea8IMVzcLkxfQ2URt4ddEcO4nYo0PIrja42o8wFdnVcDU1+jzqX m2nqkppEZcK6jU6aEwmTHO4BvHWXPdB4S1s0vD5PI6L7gjeIBZi7Wfsr9Exq5oRwXJUE HU5OGeM5gFz+RNo6W+zssfAHf6KROcvEzQ1663Sxh2z/5xEajg4VXOOh19HAd4mJfTa2 ygdLlF6cN6GkjmMgnX2C71hbQHVNVKrmTKVOLEsEISmztdNdsWdLoFvSGSGngxAzZvlj Z55da4DCqGW00rIwZJlEw72bKozIZLvK0sg6R6Yh55S0MLTGHpB4gvJhiEUG7pRo+eES F37g== X-Gm-Message-State: AOAM531Stp9v2617horzZoEs4zcGJNZwK2u+JF0slny7d4t6JVpSN7cD 8n/E4X7ywzNT1OruUSqBEkVHPN4O77BEjrEnUbs= X-Google-Smtp-Source: ABdhPJxtet6M9tyik+wdPhHxJ+UiChiccFIFIfpprEjEVXYm3eujC7YKIJ/qJGwOIeOhjdHWo+wSC+Xy5z3t2K0AvLQ= X-Received: by 2002:a67:ee01:: with SMTP id f1mr13725094vsp.16.1628381345585; Sat, 07 Aug 2021 17:09:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:1508:0:0:0:0:0 with HTTP; Sat, 7 Aug 2021 17:09:04 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Sun, 8 Aug 2021 02:09:04 +0200 Message-ID: Subject: Re: Why does {..} expansion using 'bindkey' quoting, but {,} and BRACE_CCL don't quote at all? To: Marlon Richert Cc: Bart Schaefer , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 49258 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: On 8/7/21, Marlon Richert wrote: > On Fri, Aug 6, 2021 at 3:55 AM Mikael Magnusson wrote= : >> >> On 8/6/21, Bart Schaefer wrote: >> > On Wed, Aug 4, 2021 at 11:18 PM Marlon Richert >> > >> > wrote: >> >> >> >> I just wish {a..z} didn't use quoting at all. :) >> > >> > Re-reading the doc for this, {a..z} is guaranteed to produce PRINTABLE >> > output, which is not true of the other variations of brace expansion. >> >> If you want to expand these printable representations to the actual >> codepoints, you can use (g:ce:) . > > Thanks! I had been looking through > https://zsh.sourceforge.io/Doc/Release/Expansion.html for anything > mentioning `bindkey`, but couldn't find any. :) > >> With the c option, sequences like =E2=80=98^X=E2=80=99 are also processe= d. > > That could be made more "grep-able". > > In general, I think that page could really use a "reverse" index. > Listing parameter flags by letter only doesn't really help in finding > anything. Believe me, I've tried. It is indeed always useful when the manpage happens to mention the exact thing you're looking for, but if it did this in all places and for everything everyone was looking for, it would be quite a bit longer :). The documentation for the print builtin also doesn't mention bindkey, which is why I didn't mention it in the documentation for g::. The code also doesn't reference bindkey here, fwiw: case 'e': getkeys |=3D GETKEY_EMACS; break; case 'o': getkeys |=3D GETKEY_OCTAL_ESC; break; case 'c': getkeys |=3D GETKEY_CTRL; break; (although GETKEYS_BINDKEY used presumably for bindkey, is defined as the combination of exactly those three flags). --=20 Mikael Magnusson