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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21222 invoked from network); 12 Feb 2021 23:44:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2021 23:44:04 -0000 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:Message-ID:Date: Content-Transfer-Encoding:Content-ID:Content-Type:MIME-Version:Subject:To: References:From:In-reply-to:Reply-To:Cc:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BVDl4kUSdI/8UUfkkBa6M/2tVsbXpQE26ETRSEumRPM=; b=1SYeFA9llt5svRdqMI1TIPSnQ7 UoD8eOdgi66j1kNYP7hQ0wxVPhKABe0jt1QX8aWcxzyNy2cuaSEigSMhEByEu58rQdFbG/+zNtKFM vP9z3busOeyD/w0bxJvqjmvUc2Raj4IbEuv3z7R+RLTQFQNjiz31rPJng9usnH0UKPuZd7wMkAi92 bXbJ0xa/VwWBa2Hq0aUifHiu3OUyjasTIvKSWafG5nrGoFVQ1z1QushfEC/YtuA+b03wXVSJNsXHR U2/s1LRo1ya9yUOJXvmbPDLX+zpAJs2gI0YqMfzKCyTi95RsryoVNXIkA0vbPvB4XgQzxSivVgIBc KJToC0YQ==; Received: from authenticated user by zero.zsh.org with local id 1lAi6V-0006Ze-9y; Fri, 12 Feb 2021 23:44:03 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lAi6D-0006Pm-EN; Fri, 12 Feb 2021 23:43:45 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1lAi6C-000GjN-97 for zsh-workers@zsh.org; Sat, 13 Feb 2021 00:43:44 +0100 In-reply-to: <670CED5D-45CA-427D-81DE-B381D9D8CE49@gmail.com> From: Oliver Kiddle References: <670CED5D-45CA-427D-81DE-B381D9D8CE49@gmail.com> To: Zsh hackers list Subject: Re: Rewrite of zsh-newuser-install MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <64315.1613173424.1@hydra> Content-Transfer-Encoding: 8bit Date: Sat, 13 Feb 2021 00:43:44 +0100 Message-ID: <64316-1613173424.279729@tYnf.cGen.pSSF> X-Seq: 48027 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: Marlon Richert wrote: > Incidentally, I append -$ZSH_VERSION to the compdump file name. > > That’s not necessary. compdump saves $ZSH_VERSION in the compdump file and > compinit checks for it: [1]https://github.com/zsh-users/zsh/blob/ It's useful for someone who regularly switches between zsh versions and wants to reduce how often they get regenerated but doesn't mind clearing out old ones from time to time. For Bart, it likely makes sense. For the average new user, not. I hash the combination of $HOST and $FPATH (the latter typically includes the version number) to create a suffix. The hostname can matter with an NFS shared home directory which is probably not as common as it once was. Oliver