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 12764 invoked from network); 27 Aug 2022 00:23:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2022 00:23:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661559800; b=dWksen7FRyi6/80+mcuP0Nc7V7+NumuEtJ6y14oG1e1caOZVWEURcd9OBuv5wp4zT138NnFxP8 r+MvuXF5F83inDywkORbo3NIcjD564LpC6yJdqaEY7Cfnck2NX+SP3733EVYyu1fVfNfnaKWq6 u3tjZHQ/lQa2BoEY0BbSKptbXUwSduUv6XjP/UDG1ROZCfxTsqfMV1nbKkMpvHnAlSiRT+YR/a WRh/HAxZUYdMWsDR2N2Msgiz0VEZHXLdBcLCbRNvYdNl7lBADY7oihIVmrhhpiZcEEtcEVFibr 2CAjs/SMMbGvcwesaNFxLtJPsnzv487/d3kZuxoKrlaqXg==; 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=1661559800; bh=WTEAlWT4XCpm7lm1Rxj5TLnz6jX0ArJxXg6M5TXtRDY=; 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=VJlEv6DSaghTTclv19cyB1Yr0axa+YjIKtntbPZDoi2Vjd9c7PndT0A9hF9CDw3l6WinEAVnYT +HzU9IJlRw/mI92kfMcy13kwHZcpb9o2wGN+cf/W3Xd/e6enVeMSpkiwWW6RteITCtPZjxgynw P3nj7b2+X5dil6+yjZQUG7UHNPbUgoAXbrBzpBfp/l9tuWE0BP4iqesm2cfvpza3ogq8Ts/ruX dn9gQQWU/JMhStDbAolhb0fkEELO/sbKYoGh7lKAMzCAyFvzUB1zp0yO2CQOD0Rc6W/RbAMSTm ySWt2hTZTJE+XG1lfJ85xFDdoiKuuOv38SfVKkJzQsnEjQ==; 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=i/YK5h1vAwy3CwfwhlItJUR2FU0Xkh/vebIrhDaJa+0=; b=hFHDwo8eMNfwu4E3QBgLu4NrbA pDvhe6ZfV2luUSRls0r5Thb83p653TPK7J9nlIe0YNOpiOyEOEx4GZTpSa9Io2AJtgGOKtbhrqSt/ eu4RVBEf6DFe352200JM0uzJVAcDaJ2CcPjGg2BxYQe/zWE8Z1guB5Do51AT/AHA6qMic2T4DKbMe oMFwAZtwt18HX9m760vi4nR+iySKEa/DWPyIjyFapwY4T5pC55Oga0OLTvk1RRrJw+mpKqm99BH+o aGHjThzaSaQ2iemjX0/1xKaMdjWAI40NrIL3KdLxvH7gZJTieSTNuznRuZyS++G8XDH9Zf7I3L1EB 63TX02Pw==; Received: from authenticated user by zero.zsh.org with local id 1oRjbc-000161-4s; Sat, 27 Aug 2022 00:23:20 +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]:43622) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oRjbL-0000jR-Cm; Sat, 27 Aug 2022 00:23:03 +0000 Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-11e86b7379dso2819049fac.10 for ; Fri, 26 Aug 2022 17:23:03 -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=i/YK5h1vAwy3CwfwhlItJUR2FU0Xkh/vebIrhDaJa+0=; b=UGz/rCqHYKhtSEZmDU5YMvVghlZqKS6Awn+L1+ctAmlNMG2+plUcoSyraPeIEywX0W D/UBl72K43oq9/0SqUqrfApLrg3+/91E52f3vWbepkWALegP+UBzlbwFji9GE4fpxuC/ oRN9zbj89UXFsNzkvYM/3cMs2AUFZO5e+jbAlxAJCSWzjTqTHFRMi4/TntT4QL5pSLua P5I4UN0IxWjRaAvVvJN7defWqkw3Cn+35R09uuGDi/KyjqslhMSu7WkmV0ZjuyPjUJb8 uRwMB9hFQMx4wd7qeIaAIwN1zHrGTRvgVqqEY1MkQB04rXhLOmXzSLByWXmnxmcHq3lb sRJw== 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=i/YK5h1vAwy3CwfwhlItJUR2FU0Xkh/vebIrhDaJa+0=; b=A7Nyp8gd536ymO++9oodtjSrDLwRLUyhFeDlQaP6pnjVsD+K3f3PRZagL9V+eBNduf ZomdZBO4LwABXElooRD/n+H0owDJmvsNF/JtXNaQXvkphOZjZ5bqS1pYPtZgw7MhWv81 ybzSOKwsi2FJOcl5DxSrrqiF8v9sOrUZKn83RcJjobbF9miLvvBs7VJoecujPGmrrIgG lYxXbEs0A3JwL1bcuYBiunpTNq5LmG/s/nv1ozB7WF21UMXORtrpA1Fyug2mgffhJRfC ssIkdPjPce+ihVV2sXgAu73673DltJjTBCFqPQl+Iwuqx2LDzlr7+zmOZDZdHHb5Yyw8 q6yg== X-Gm-Message-State: ACgBeo0BzO1uFV9dnHBa+a/lZ8+RjlbMF1lJ7lxViInBxcLif0tIfkjt 4Zl8a7Pguxt7HocJmoey8KrX+/7PnB1YE6qPLBc= X-Google-Smtp-Source: AA6agR5qgzUxIxD3MuQt3gA7JPVK5ADhXwmzbU31LZamamMAk6+zAMwaG3mNrRdZ3GLhwAqRDtZT4M4VHSHeBsWIGyY= X-Received: by 2002:a05:6870:ea89:b0:11c:6ff4:c345 with SMTP id s9-20020a056870ea8900b0011c6ff4c345mr2971986oap.293.1661559782056; Fri, 26 Aug 2022 17:23:02 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:7717:0:0:0:0:0 with HTTP; Fri, 26 Aug 2022 17:23:01 -0700 (PDT) In-Reply-To: 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: Sat, 27 Aug 2022 02:23:01 +0200 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Felipe Contreras Cc: Daniel Shahaf , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50531 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, Felipe Contreras wrote: > On Fri, Aug 26, 2022 at 9:02 AM Mikael Magnusson wrot= e: >> >> 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= =ABunset >> > HISTFILE=C2=AB=C2=BB; and then the default (zsh -f) could be to have H= ISTFILE 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 >> > even >> > 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 ne= w >> > 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. > > That is not an argument. Do you care to explain why? Not really, I haven't had great experiences arguing with you before. You gave these examples earlier: sect(Why is my history not being saved?) label(321) In zsh you need to specifically enable history: verb( setopt SAVE_HISTORY ) vs sect(Why is my history not being saved?) label(321) In zsh, you need to set three variables to make sure your history is written out when the shell exits. For example, verb( HISTSIZE=3D200 HISTFILE=3D~/.zsh_history SAVEHIST=3D200 ) But realistically the former actually has to be autoload is-at-least if is-at-least 5.8; then setopt SAVE_HISTORY else HISTSIZE=3D200 HISTFILE=3D~/.zsh_history SAVEHIST=3D200 fi which isn't really a win. Besides that, the whole thing is way too disruptive just for you to save 2 lines in your .zshrc. --=20 Mikael Magnusson