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 21930 invoked from network); 2 Sep 2022 10:14:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 10:14:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662113689; b=WVYI06aIvoLDOhnpkJIASPc7/Yoqaxw2yB6vQITuuJ0uKdQJDvC6eMM2b9RmnzRJ5neWSsXn3Q +ciQsediNcjx3QsU8eOPYzFvB9WJQAfBGGNaV0dtZhzLy9WMfVevERWpGXXJahPGdGMnaxoret P6IH0YP3pSAEgumCqxLj8due7v1sdh9I8LVHIUxSwRIye7pxEbqtZLMpTfKMwvLMMrfhZ6H7gw 2YAolRJgLdnwr7s4BqrrryTVrkSyiCH3DYPJXHoUEqaZxKPU354QW6DVltpMzFLVKw7wtiDivU m6PknaWMOAytMbebEa30Cszt+cmDLIdKKR5HonR/xyP6Sw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662113689; bh=bGE2fj/8yJtM54oFQngIv5OyfiryUdZ/WZG3dLdlwR8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=JJXwgQXyfOSQ3VUa7jlcmGUksEMW2dpVB+h1r+xFLuovudyiGXko/BmoSyKGTje7TL1iwaAw1l jEv/J9Sq5XtTtPt2VTOmtqZtz3nS/8BTYBKklb720SQ4ER3fXSBk+OsdlKRtvQowKLoG/pNdry xPp6DNrcKAVdyBIvyTij1mcnm5xUb9242F8E7Pqeri5RGUE1X8U12KFwm7+dgkehSC/mJo08uD i+BIXanJ9sa8xxiGhevik2agM+HhUAcHtLotAEWsiq+IdBDzaBZGeq38gLrpEW1HTJWBk96TAi JJcekO74IMmj4j8dybK0Xqpna2mudHkWFcq6eubjCVFoqQ==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Bw9JEGcgaPhjSuzjK+Fnt6KJYjTAOyuJsJ7r2NVphlg=; b=bPpU+O06ulbikFJy3TRANXV5w+ Y5Ud3PFOV7z1r8UartPogFZ+tvuwxS05xN378M4lDiWnMkN3QeW9OKeLqblszGc78wf8xPtIFyVBs 8ETWvMuYMC1xqRFSubC8XpLXEPoV2dOYLzJaCy0AXlZAfJEW57pzAyka6wSOaEDCqKJD9fyBVp6na 1Sz4IAwgUbKBxHkoRGbFb+bs4W5mjDDlNx7zr1MqmbZOgeoo/hONVlpVVIWq/FEDLxF/O9tzm9P0b NFSf4HrFgzsk+6mG9kOMeQywAeRStrH6uL3T2+y1nAIfwwcZgYeymJDkpM4sHLpUtzzHnEFBZxoct ZJHPLHUw==; Received: from authenticated user by zero.zsh.org with local id 1oU3hJ-00024z-Bw; Fri, 02 Sep 2022 10:14:49 +0000 Authentication-Results: zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:43921) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oU3Ua-0000KR-DT; Fri, 02 Sep 2022 10:01:41 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7F5A332009EB; Fri, 2 Sep 2022 06:01:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 02 Sep 2022 06:01:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1662112898; x= 1662199298; bh=Bw9JEGcgaPhjSuzjK+Fnt6KJYjTAOyuJsJ7r2NVphlg=; b=U WqCptDE6M0n69IReei/dTzTEAjOFvBZD8MNVQgksAz08NUFWQBfcG0AQzp0ufHJ6 d45WGqgMOGw4ye/LrSddNlXLKE9UXxtdN4JfQR1cmumwSGYYcboZ2R9VDjW5wSv+ r10B5oa+WGjUiVhdB3431gcLASxe6OjzhGTnWr3g2ODNrmbNm1/H2pr7Z0TF1VDT ktzikM2ACMdATOvorfg1NQ/DZzw/2P1iFFu+40Tlqnv9+rtLTjmxmnsbw88NYizh 0/8zfT09UKo/hotvdtJuB/WDNOX/mm5xGMNZCdnH8rvQX3Bq7uJ9HcgKneECnvFB 2HnjIZTpjQrymnd5d0gLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1662112898; x=1662199298; bh=Bw9JEGcgaPhjSuzjK+Fnt6KJYjTA OyuJsJ7r2NVphlg=; b=ipCnYUZywCr6/BOnrTHP8FUq0bpnxsiUMHRI0PVV9yu8 nnDkmIDV5xYZt5GLFaZgKlyJ3Oa8zjVunF4W/gWDz4YyQN+Rs6OlEKKNycjQTKxD VmK5H/TyaUAVa2WBs8HRIsbfY289d19DlaGmUoW8KdsKZLbsxoWOVjK+lfhiWDgd 9TENcWHpvlXywhT1iVHUAiTXnH6rvlZWJeH6ljSkHPGL7/+bWHDpLr7KsRyfL8c9 tEyZDlN2LVtfe6ScB4YW7fDxiRNAXqGI7sCk5BH3LtUTm6c+llE/iRfBv7K2wKIc mmhODYQBWVUw6h4Voqy0N1k7H7Tfw0pnDUSi6iolWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeltddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujggfsehttddttddtredvnecuhfhrohhmpeffrghn ihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeegffevgfdvffeffeeludfhjeehkedtjedvieeluedtkeef gefhleekkeejtdegteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Sep 2022 06:01:37 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1000) id 4MJtjW6JDTz3Kk; Fri, 2 Sep 2022 10:01:35 +0000 (UTC) Date: Fri, 2 Sep 2022 10:01:35 +0000 From: Daniel Shahaf To: Felipe Contreras Cc: zsh-workers@zsh.org Subject: Re: [PATCH 1/2] Set SAVEHIST to $HISTSIZE by default Message-ID: <20220902100135.GL5920@tarpaulin.shahaf.local2> References: <20220831031854.27312-1-felipe.contreras@gmail.com> <20220831031854.27312-2-felipe.contreras@gmail.com> <20220902085904.GF5920@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 50576 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: Felipe Contreras wrote on Fri, Sep 02, 2022 at 04:29:30 -0500: > On Fri, Sep 2, 2022 at 3:59 AM Daniel Shahaf wrote: > > Felipe Contreras wrote on Tue, Aug 30, 2022 at 22:18:53 -0500: > > > > If they are the same, this makes it clearer that they are the same. > > > > > > Signed-off-by: Felipe Contreras > > > --- > > > Etc/FAQ.yo | 2 +- > > > Functions/Newuser/zsh-newuser-install | 2 +- > > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo > > > index 8c795685a..dd573767e 100644 > > > --- a/Etc/FAQ.yo > > > +++ b/Etc/FAQ.yo > > > @@ -1631,7 +1631,7 @@ label(321) > > > verb( > > > HISTSIZE=200 > > > HISTFILE=~/.zsh_history > > > - SAVEHIST=200 > > > + SAVEHIST=$HISTSIZE > > > > Personally, I'm not going to commit this since I find the increased > > semantic precision / DRY compliance to be outweighed by the reduced > > readability (both here and in the code below, but for different > > reasons). > > But you only need to read it *once* and forget about it forever (or at > least as long as you keep the same history strategy). You're summing over the wrong variable. This isn't jrandom's zshrc; this is the FAQ. So, don't sum over how often jrandom will read this passage of their zshrc, but over how often this part of the FAQ will be read by existing and prospective users. That's similar to how example code often uses --long-options in preference to the equivalent one-letter short options, even though regular users might not /know/ the long option equivalent to a short option they use daily. Daniel