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 15082 invoked from network); 2 Sep 2022 13:47:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 13:47:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662126471; b=Ekrb6p5UnB8Obul+T0YubU1HIWHmIgtandRqMOWvza8AEGxDmfy0qCmPj2+ZxTcLa0xEssw5C0 3E2++KYEv4UYfEfpCMY2RJM9OfgEovmE/D4ZkJsK1tuqirtu2xpSNPozMcO0DwM5u4kkuPsmNC VVuU1yrZ5J5QKscEwDMPmragk52yyR0TZuwyOix3QH4LnGIoBnLIvMbuiTAgcMJb0RcuvDVj8a dRA+ATPghkSTqvrTPn8FVch58w5Kfw3GWFJ6lM/csokR+ZU1edcfCkvqMxwGc5Atc3mkXut/Kf U2EpJUt1tXUjR0qDvFa9tNomarC7kC+yc8N/18mlUU2K9A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662126471; bh=Jaf9Xl3b6B+FUckzsCX221JuKG2G8dO1+US/KRIId+E=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=rv5z5HgJraNm1ZGH3Zf5uY5NWtN5rZnpG1zSEaT2HaNAcZCGkSoJ8eCA+6q56KuIDxhCYrYZU+ U4NGWGQwkeA6X8Ui6gMANWjYWaQpYpINVaYUCd31CFegkMi3zcA3I0bJ8sxmSWeipU/g4vWxQj IFoKl889k6cuzyQbm/Fv0SjVHHH+f/UD5Apy7wvAXJihPFioqrvqGVKbduiH1XwCUEw+BEd9jk 6A165g2jE5p5ZOQi2WxxXod6nMcWffGh2ef3k6V3OMOips3tw6H1JlAYFutiO15esFIYX3ElLM ZjsYYqPvMQM6TOVMX6+2d/HKLcTvThQaqzXbqEm7yUHRiQ==; 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-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=JrgM5cEDTwbABXv+n1dW1mGiTJVOqf8soXKyoqwqYYY=; b=SRr3LMeKjoFP+ogMXKGzZUeMml jEdZWblFV2qySU63kL8FOzbiwTrOE4w5J8ebEQZYx43cz7UubJwUVUYDqT7QvHT/stOZOE34GTqj2 59s89xyfrQcw1WfE8U4CvMcd0L/A0oWL6GzQSSOMtKmyaxFMqPwFS1fRvHEBzGDMehiXw7vicEz1s NAFHFLDSDyfyCfELf4GKRvSSEYYWV3B+6FmksbbG6bk49i93Uxj2LEzLjJpOsWRR6hfuf/OVsmiPy FbPjlHS827zrWPbHMWnRLqDszqCCBdtclLcmBfIVDbTRgi8DiUQfXUSiGbnUYLloOygKOHD6D9otB KlkKNtzw==; Received: from authenticated user by zero.zsh.org with local id 1oU71S-000GSF-Qq; Fri, 02 Sep 2022 13:47:50 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:50522) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oU71D-000G7e-CE; Fri, 02 Sep 2022 13:47:36 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.96) (envelope-from ) id 1oU71D-0015RJ-0R; Fri, 02 Sep 2022 15:47:35 +0200 Date: Fri, 2 Sep 2022 15:47:35 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install Message-ID: <20220902134735.GE255755@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org References: <20220902091857.GH5920@tarpaulin.shahaf.local2> <20220902125029.GB255755@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.7+30 (1fccbbf8) vl-149028 (2022-08-07) X-Seq: 50584 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 2022-09-02 08:28:01 -0500, Felipe Contreras wrote: > On Fri, Sep 2, 2022 at 7:50 AM Vincent Lefevre wrote: > > > > On 2022-09-02 09:18:57 +0000, Daniel Shahaf wrote: > > > Mikael Magnusson wrote on Fri, Sep 02, 2022 at 05:46:12 +0200: > > > > On 9/2/22, Felipe Contreras wrote: > > > > > It is unreasonable to force absolutely every new user to set these > > > > > options just to get started. > > > > > > > > "Paste these lines in .zshrc to enable history" is not more > > > > complicated with 3 lines than 1, however much you want to argue that > > > > it is. They still need to find the line(s) to copy in the first place > > > > (or god forbid, read the documentation). > > > > > > Copy-pasting three lines is as easy as one, sure. /Understanding/ them, > > > however, is a different kettle of fish. If one has set three special > > > variables, then one needs to read three zshparam(1) entries rather than > > > one. > > > > Isn't $SAVEHIST equal to $HISTSIZE in most configurations? > > > > In such a case, couldn't a negative value for $SAVEHIST mean that > > it should be regarded as SAVEHIST=$HISTSIZE (dynamically)? > > > > Then I think that -1 could be the default value for SAVEHIST. > > So only HISTFILE and HISTSIZE would be needed in the .zshrc, > > and they are self-explanatory for the end user. > > This is precisely what I proposed in the previous patch: > > https://www.zsh.org/mla/workers/2022/msg00830.html Perhaps, but then, I think that your patch description "Make SAVEHIST default to HISTSIZE" is wrong, or at least the patch lacks a multiline description. Moreover, an update of the man pages would be necessary. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)