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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9581 invoked from network); 28 May 2022 18:44:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 May 2022 18:44:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653763468; b=WZLHhPBNkauagVxqEMwgo9cIbkf8ZC/rdWQ06JTfwxsw7G2/sM50t232mg7Z9gcbfI6T6+bvVa C2XvICk6zNro4EwZp89zNA/Z5yoP8mzBMlDI7AqmeJudMfuyYHvu9f75bBMTDQz96igy3h+MeR C/DmsHEf4AZNNoCbxXj3NxqfXalEHnZ3iEAeSyinOn12J5CLFCG4bp/djK6b70K0bWSSkeppwK EnR0kR7drycLxRcoTsjubikBBylT9VwZh5jg6q27prEF9f8Hk6REO865S02M8G/M6+EmzKFR6P 6Pfz9adUh5cMr50j8uhNA4UUxIq2bhYPpncgK6hhN2iRAQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f52.google.com) smtp.remote-ip=209.85.218.52; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1653763468; bh=fnqh0wxUMCxyvXjVH5yBkJpxqczaMI50eMC7LZfH+zc=; 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=rotX7B18cNFUPDnIflgeg5Ht3CK8app+X4qeV8pnx6NGV0jOoqC2hPFzKBVfkeZJXEdk8VvvIm kG6x8jpfgktYTk+/T0oRX3KBES5CGOIUF+b9gzEFpUs96OQIhtftnnuuY+YozaiPXunS0vpqrk 4/y5TghEiKhN80opxfh7N36DxrdMlmZBZVryKZDqoX36vZ6kK5F1X0iQl94n/qq4YfxtQmMjZ1 5ul7cSqjaPg6MtPScUVBcB62JKE9UZGuX1jhZqEdE7vnsPO/KgpOFJ41Gg5fGxoAnEUGL0HBFY rTEDAWtnaC4Q+zP83UIdSOE0E/08j0204KGdMFiwuF6jOw==; 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=1vaxXp26gHoaLRvq26JroSGnV1rUdwu2NPZICPjxR6M=; b=hjjxaPNHZJrixygnUohRDimMaG 551XZszOKfsA0wFxy2RTm9aKT4i8/qWtC09oHJlLRi0lvpVDadjzM93eunTrtdDyO0KLTZqe6RO83 SKjWCBkVx/2B9Mc83MElZifO7mb8iJvoy9QuWfHACqeLD/wAVF2/0ArnWdLfOx2N4x57UTFMAgT+v tuGailxdYt8gB+VvvtsysBkLCNQ/5/I/3oz5jSJxJLazlinOvpa1lg6+2DoJxWIWQuKBzgqD5VrIG eNMvV1VrbqnqaVr3VM9vAArgPA6KNsDQ7bV2h8n1Pj9h5QN/GCgxtUdv3PwjlCgKUydwrszyff7Wd ngPVbHcw==; Received: from authenticated user by zero.zsh.org with local id 1nv1QG-0002BV-7g; Sat, 28 May 2022 18:44:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f52.google.com) smtp.remote-ip=209.85.218.52; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f52.google.com ([209.85.218.52]:43731) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nv1PR-0001T9-P0; Sat, 28 May 2022 18:43:35 +0000 Received: by mail-ej1-f52.google.com with SMTP id m20so14066997ejj.10 for ; Sat, 28 May 2022 11:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1vaxXp26gHoaLRvq26JroSGnV1rUdwu2NPZICPjxR6M=; b=ZFt0gt1z1zS25oDWwJ1dLTqteNvJjkqQLnjfqOByKLN6ImKcwg3lHUBfEoBpXaWlkr IE8jjjLEFibMIEgIor5S6/OYxpzBqneNe3HyVriQlDrancL7il775xUW8AZSyP7U6pvL lSLGWdAafezIyBubBaaZdwIlSOacxmSAr8z3uSc0D7wPRo9QIroAR9IyYhZrLSUDAD3d bTPSmTEhIcR0FqcfXkrliDDvJCSNWYWehJBi/AL7RLTEXVZEin0fjGJ594GH8tOIaobG Ce4JU0bRraGLxt6dlWbm4Zh0pMKVbEjMGCfNTeoyeTpiTSq72HlYJbmDVYxIddaIneOx 82Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1vaxXp26gHoaLRvq26JroSGnV1rUdwu2NPZICPjxR6M=; b=bLJd9iZgHZguSgzSemh3/xL8JS7NY4S+ii1MpLMj4byBC78fypc236aXRfMwHrdXwp ZM6C3sqh8KUnzL8WHOUljY/04ejifNBkjXZdtZK3X7DUTABWlYPf7NlizG2r1pvZc5sa lz9nekJsUEq9WSTD2cIMVvbV6WkoS+tf+mX73Ok0ywOQTRWqFmGYrgKKiCyENTvPJzPQ kyx06IPXsMW96yULfFe9bSg+3WcvlJyLIO4P0UpVY8VghNqj8LBZH1eC90YqumW1Iq7Y Kcp3Z7rWETdayt0PFZtaUK7Uu0dpLuZdV5ygOh7aJ7g9LwCKSQxJUqgUfOCPj/diNw5d 44Pw== X-Gm-Message-State: AOAM532NXyWN5Rd593Nw1GXQMgUHm+6MjPenWp4Yre3RprvJFb560Upk e2DhM281TDXroAcF9r1EjnI0OSU4k3nQuBzhHMVExMS+en8= X-Google-Smtp-Source: ABdhPJzygtS1oLnxVzmcDagduZfWrQkOKtnDid+PgbZMeYXHeaHdKVhP7W8/eOoQ0QURPTPN09Z+v48nLvgndUeX8HU= X-Received: by 2002:a17:907:2dab:b0:6fe:e1f0:3e8b with SMTP id gt43-20020a1709072dab00b006fee1f03e8bmr29138881ejc.55.1653763413190; Sat, 28 May 2022 11:43:33 -0700 (PDT) MIME-Version: 1.0 References: <20220525025403.GA97860@zira.vinc17.org> <20220525084920.GB97860@zira.vinc17.org> <20220526143602.GA1236826@zira.vinc17.org> <20220526155329.GF19001@tarpaulin.shahaf.local2> <1936193667.415066.1653581604546@mail2.virginmedia.com> <20220528000720.GB1236826@zira.vinc17.org> <20220528100639.GB29128@tarpaulin.shahaf.local2> In-Reply-To: <20220528100639.GB29128@tarpaulin.shahaf.local2> From: Bart Schaefer Date: Sat, 28 May 2022 11:43:48 -0700 Message-ID: Subject: Re: prevent some lines directly coming from the history from being executed To: Daniel Shahaf Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27821 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: On Sat, May 28, 2022 at 3:06 AM Daniel Shahaf wrote: > > How about the following? I think the new text has a lot of room for > improvement, so feedback's very welcome. Generally very good. Just a couple of thoughts: > +cindex(widgets, shadowing standard) "Shadow(ing)" is not a term I'd think to search for in this context. Wrap, override, overload, replace, re-implement, ...? > +However, each standard widget `var(foo)' is also available under the > +name `tt(.)var(foo)', and this name can't be rebound to a different widget. I would probably have used something like var(std) or even var(stdwidg) here, but that's a nit. > +Therefore, for forward compatibility with future versions of the shell, > +it is recommended that user-defined widgets should not have names > starting with `tt(.)'. It's actually prohibited to name a user-defined widget the same as one of the reserved dot-names, so this recommendation could be more specific. > +then tt(myfunc) would have been called again, effecting a bottomless > +recursion. Perhaps my old-fogey-ness (or USA-centrism) is showing, but I've never seen the word "bottomless" used in this context before, only "infinite" or more rarely "endless". Another nit, as it doesn't really change the clarity, just mentioning because I found it curious.