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, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1416 invoked from network); 26 Aug 2022 14:03:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2022 14:03:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661522587; b=qc3VHJHpEOPYrQPzuZkStrEYJecPQpGG0ldcimo5wqr/VEm2Otioi5hL4lFOLd/TGde2OTaMlf 42lRZGtlQVWZGDwCAfrjR1Jv+9qJnuJwy2C+ZYg357EttWILTCczWXp6ckyG8f1FCisj9ICWMC Ko2lbEaVbl+ixqrhOmsxUU7u00vJ0kpBVjamhdoyRa+4KqSR7+hj783q4GzFb/z0VbbeKssJvX PFn64Ob/efpW30Sf6SD0oOXSRwmvOvk7/JND4JL/NWVZB00zP1FTXekmZ/2tw1gvUWNMBEdsik Vyw33Lto5qqX/auhr3g6L/+52fp7fi3bx24csXW1rPn/rg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oa1-f47.google.com) smtp.remote-ip=209.85.160.47; dkim=pass header.d=gmail.com header.s=20210112 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=1661522587; bh=0at2iboPSJEBLW8Wybe826WTOlKSXUAU0eED3J17HZU=; 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=FhUU7GCqM3wetkv13nZhWV2Wvgd5XuxUHB5U0LX67+OyB98gqy2u+QEuMccAzjCbfiAIZUzA5+ 5s7sh82Ep1+NmEePRYfJahxO2DVf4BnY/zDtVHxHiq+BxgeDDT0VacFOOK6rSnM7k1Qmwh7sK4 IHACKu6f81B2i/ngY3gajwGZu4eAY8o3DVISVc9h+Th4mSHeX62a0zq8Qk1RHtMdivrPYUESE6 KDo4HVDi0uiW2cFqQLqlLKHaSk6S1Asrpoq6TF0YVNr8QI4PGaueysIXPR/Pszryp+OybUADi3 Od3Z2Gm1RLmJLZwHMVM6JQsbB98QRxX7c9d2nrdSZt+Fww==; 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=BZVhF3FBYM58+KYYIOSb+Pnuv1RerwGD3sZBAZvxa6s=; b=q6vexg3d09Hl7Fcj/z9K2xa3uM WNq6ZT5wUkNaHuMuOVkNXP8cCw+RzhelN036/EejRqPzyY8vdjyW/3VpVPyYq+SqAGypx7eRvau6+ FByczP+h3RGAJZsRsy2bvFJMSvcqyqqpPPv5uN4WW+/i1colCoUkvHuePd5gGZZLQGHzjZqNi9iAO 7c7/sM8nyWmnUpeIIrBZvNx6rDnPHne9zojGsubiXeMo8q49lUOIL+bMKMOW2syPEIRgqWHGl1vxI xM9DzjnOJC+0+r8OjaYdHwkzfB7l21lh8P1lo0V6NsuhpIqrfV2Y1n8PbaqDhE5Vo3gmjstfgoLQa 5/qfBODw==; Received: from authenticated user by zero.zsh.org with local id 1oRZvO-0009lW-6u; Fri, 26 Aug 2022 14:03:06 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oa1-f47.google.com) smtp.remote-ip=209.85.160.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oa1-f47.google.com ([209.85.160.47]:37632) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oRZqE-0009IA-Du; Fri, 26 Aug 2022 13:57:47 +0000 Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-11e7e0a63e2so1290153fac.4 for ; Fri, 26 Aug 2022 06:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc; bh=BZVhF3FBYM58+KYYIOSb+Pnuv1RerwGD3sZBAZvxa6s=; b=N0xox8O7E/iwauENlwBB84bluornM6aro1dFfTG1LT1M8lsVeCJPTOuopzgNDpFPno TNrguQptBNHvl4n1Ge6bdJg/HwjW3ZiehcI2gLraYihdZ6MHxj+ahd5VV5hxDdXp7p66 UQW2xnlwjTtj7QnmFTerZf/ahkZW+7oOUbBEAiM/u/t69BMUgLBwrPrt9egPYAbrqtF2 3gUMnlxWBh70x9kpP/U9KPc/baVS/OOYZLcT875bt/RuUDSa5bvroqc6HXX4KQsFFcY/ q4wocMDWCCXfOHTMhrsq1/bVFVjzbQ6U6+sxpWcR2IvIbEEfCp1lL9ebj4mBnHrLZpvA d9wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:x-gm-message-state:from:to:cc; bh=BZVhF3FBYM58+KYYIOSb+Pnuv1RerwGD3sZBAZvxa6s=; b=lBE/opBmFphXWSlAO0UgpL+fPuAdE5qyMFC7Nm1bwZp8NAzt8XdmpJCrAvk9LRiUnO 7kpOKHgitsbjMUd/kQTiYTMpy/9F7I1dP1CHPfCPXhqojbLCnd1HAUgLh6ZLK3XuZHyb Jj6t+RkKHKZqW4dlkeToF/1aPENlBSaeFn3D1JT+m1tJD02eeA2BdAoNTJd8k7GD8Wed XrXeVABmYtCSYpS6OGCv4h4QjGRvHdEOB3VVwQWsESr4ZoJjLhbHglVWqyj1bPFgFand zvU2U1DStO7QVQjZwSRp4U1iirbGKjzCQJf+rGFI0f9yM7ToXAT/YFDWCRw5gVgQfGE3 z1pw== X-Gm-Message-State: ACgBeo3fuzd8PZybfj5leCspyWEOOQW9/ZaF+XvuTwoh6gmg9nm4msKH sXqu33q5WKz3nEiBL8C2r1CNngksnaSoHHsZjTg= X-Google-Smtp-Source: AA6agR5n4zXTeLXBmGENsIdOF5DcH7eOgd1Guh+r3pMFDg9/SodaKG5O0xK9aJs0xIr2EoTLhJ30WYflz55dDHiu8VQ= X-Received: by 2002:a05:6870:c883:b0:10d:7d25:7685 with SMTP id er3-20020a056870c88300b0010d7d257685mr1861852oab.174.1661522265138; Fri, 26 Aug 2022 06:57:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:7717:0:0:0:0:0 with HTTP; Fri, 26 Aug 2022 06:57:44 -0700 (PDT) In-Reply-To: <764a967b-86df-42bf-9242-22e9aeedfac6@www.fastmail.com> References: <20220824043145.165779-1-felipe.contreras@gmail.com> <20220824043145.165779-4-felipe.contreras@gmail.com> <7779ec6b-10d5-410a-97da-5ec545cd6e1c@www.fastmail.com> <764a967b-86df-42bf-9242-22e9aeedfac6@www.fastmail.com> From: Mikael Magnusson Date: Fri, 26 Aug 2022 15:57:44 +0200 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Daniel Shahaf Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50527 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/26/22, Daniel Shahaf wrote: > Bart Schaefer wrote on Thu, 25 Aug 2022 23:08 +00:00: >> On Thu, Aug 25, 2022 at 3:44 PM Felipe Contreras >> wrote: >>> >>> This is *less* complicated: >> >> Every addition of an option to change the way something works is >> making the shell as a whole more complicated and the interactions >> among the settings more difficult to explain and understand. >> >> Unless there's an important behavior that it's simply not possible to >> accomplish with the existing configuration controls, > > Does "enable saving of history without specifying the history file's name= " > qualify? > >> adding magical interdependencies and switches to enable same is not >> IMO a good plan. > > What I had in mind was a new option, HIST_RECORD, and have it implicitly > setopt'd by assignment to $HISTFILE and implicitly unsetopt'd by =C2=ABun= set > HISTFILE=C2=AB=C2=BB; and then the default (zsh -f) could be to have HIST= FILE set to > some > value but HIST_RECORD off. > > This design: > > - would not change the default behaviour. > > - would be compatible with existing dotfiles, since assigning to > HISTFILE would set HIST_RECORD implicitly. > > - would provide the ability to enable history without particularly > caring about the filename it's saved in, which would put us on par > with most other programs. Most programs don't require the user > to name files the user doesn't interact with directly. (cc(1) goes eve= n > further with its default output filenames, such as foo.o and a.out.) > > - /would/ be an action at a distance. However, in this case, > considering a user who unsets $HISTFILE in a universe in which > HIST_RECORD exists, I don't immediately see what alternative > behaviour that user might expect. As to a user who sets $HISTFILE and > expects HIST_RECORD to remain off, that's backwards compatibility. > > If that's nevertheless undersirable, then we could go the deprecation > route: leave $HISTFILE as is; add an entirely new way to specify the > history file's name and whether writing to it is enabled (perhaps a > couple of zstyles); in 5.10 recommend that people transition to the new > way; starting 5.11 issue a warning if the old way is used, saying it's > deprecated and will be removed no sooner than ${date or version number}. > > Any other alternatives? > > [The option's proposed name was chosen for consistency with other > options and for avoidance of ambiguity with $SAVEHIST.] My vote is to do nothing. --=20 Mikael Magnusson