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 4265 invoked from network); 26 Aug 2022 18:45:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2022 18:45:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661539514; b=KqBy0pb9i2ygZ8MvBEbuAUQPHaaTrSXmwbUiZjJQwjxDSq4SclbRUob1b9ZF7Ng6cKzt3pQc44 pOcJjmC+9taXI6IpiECCwDiemJtTdkzKtSssjcoXM84h4GPBMsCRfbIXhp4NR44FFKZUWYA61d mU7BAwl7dzP7e2VMG0F5Icyt8XrImUqRldnwsopFlRRV+Gw1MPdFbFVogLCk1uXYMZl90g63Hu bL7m22pze9UjwxMpbqzcl1XHPoTLBFWbYhjXw2dYmEaLkeeLAJ6OpT+SVUEQkM44TP38lkgOFA PEyE8b3bpLCdH+cUp/LGEpSCzo4Pdb8degJYQMGZWrRH8g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f53.google.com) smtp.remote-ip=209.85.208.53; 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=1661539514; bh=Z5T72gtwUB4ti6r8br0A3S8Sy4S9Nxo+v33CSkwurQc=; 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:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=jxKYAJaFKrUmDKZUF5GnIJ2VBLYqF0Ry1+cq+/87l5PkLMrUbBJsT0j9/pRmeh+YVjlhZun0ko e0fky0ur9zeriu1tI4JaKC/cApb1f3ZRBW+/7qOSbdgX/wqXRc0zL+0Myt4vBnRHl/XPTDumOD xGnma6vHQVb4WewYI7YuQJK6iB5NWgp4t7WWpEIJRBSavTmWJsfgOXLAjRSGN627AdQIq1NOgy zBZ+BmBuZALwUwnYs4OGaU1D3P41k1VOFzNUBQK5dH1ndkPGyHGOK7ngSRJdVz1/yxeiGhF57w kSv7ZmZD1h+oXP7EKCXh28JM2I0coyZhTyzg9trPJRzHsA==; 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:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=RHjE005s1HdTls9TlXiT97pN1j6ejSsKVg1sbrhUlpc=; b=AYPD8BvA2vqmK8c+ho0NnWYVtX L/Y4xlHmyvSYLCorbrJyom/hHK+HTCjhR11MGN1DAYK4qafHKmp7LVRW4cfaPluysAB0L3dAKLjwp ooGef51FrYnXrrb7VuHS7uVRhV7K5Y8TzFsbLnbbMDuXF+VHIY0g9cAdmmzf+r8U17Dtoum1u7zYv UIMClcj1ryE7SV22O4diqCp7e15NLfLIOX9LrySqFjbr+Yfsqin/++IIIhDvtoyimCAXiHqA6CQ6c N9ulj0L3IbUibtGoggNYUj542F9EIrvIQE1lr7lQZhqUySY6YtK/Pkf1MsSW8yDnDl5BYkBQIt3Pt 0G/k4ojA==; Received: from authenticated user by zero.zsh.org with local id 1oReKO-000HpT-SF; Fri, 26 Aug 2022 18:45:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f53.google.com) smtp.remote-ip=209.85.208.53; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f53.google.com ([209.85.208.53]:41602) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oReK8-000HUZ-Sa; Fri, 26 Aug 2022 18:44:57 +0000 Received: by mail-ed1-f53.google.com with SMTP id r4so3140793edi.8 for ; Fri, 26 Aug 2022 11:44:56 -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 :in-reply-to:references:mime-version:from:to:cc; bh=RHjE005s1HdTls9TlXiT97pN1j6ejSsKVg1sbrhUlpc=; b=PrkPAk7aqbt6ML1POYbacbK/FArJ3+T1q2IkYnPDGVWfeyIgOpk9oeZU4wG2cTh+z2 z5f7UaeS4bjMlsaZPkIHwcNO/1zWkzaXprUkUHSkGRSaJxy5B9QbNt87ow0XdQPgC3ob iAgJVusqAhm/K5RMh2fUZDjvVFwGTjLz7plC07X3c4dG0W8k7mvB3kxr5BJPbTFcI/Hx 6MaUXERX+560F4Mfg6ZNA6XYSTl0hFYjP0Gn7dyCu7OsZU5xj++r7luGfaDS0WG1L7Dl TsHvpQPcdslkm8lRqSHimXlvw6lh46jsaswbdNfkvG92IFH7GmDi/PvbK2/wD2YHYYpM 3lNQ== 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 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=RHjE005s1HdTls9TlXiT97pN1j6ejSsKVg1sbrhUlpc=; b=4HgBItP8tGtC67Kn0F7/EW/RL/y8GBjftE5EOeDPwtzE1xca4pTB6Ts1DCcBzcGODb liEpGM29XScUTEhCmsBt68WKd2RICwofRsl0CuNsxwZpRKOXnPvJQnXQo6uc7uvpKPpd eA0tzXwcVmjSwDrqRmy3ivc5IvpeG1PxI+fZQqVUYvSYu0lhujl/QLOxEYrFPYArhEv3 TT7/WxL1nXosJ5jaH6Xg0f1UpBDutttUm/1nRs3tBwtXSUHKUPbvTbKSraJ01XM7lcQn H1VodwZWVFW3+rNkTnKn+DnpCOG8pfZTswb7TSXcCqi6B/eil7PKEwitYQ4JRQTao7ma qIEg== X-Gm-Message-State: ACgBeo3J4QoXOvIr661yzLKWB4RUBCAGBTeNm/WKb/NESl8kcERDBXMb Sc3JXrE44tQSFvaczJDYaogCA1TrXdnhtJsB8xo= X-Google-Smtp-Source: AA6agR7T6gw2RMsJvHZeRQh8q4RxIWsEqmBKamYhlFXsypIlajEmZX0Y/4URKkyHPnwPNdwlRpLghZ3HJ0QE5UVd/jo= X-Received: by 2002:aa7:cb06:0:b0:446:7668:2969 with SMTP id s6-20020aa7cb06000000b0044676682969mr7719795edt.206.1661539495973; Fri, 26 Aug 2022 11:44:55 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Felipe Contreras Date: Fri, 26 Aug 2022 13:44:45 -0500 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Mikael Magnusson Cc: Daniel Shahaf , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50529 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 Fri, Aug 26, 2022 at 9:02 AM Mikael Magnusson wrote: > > 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 na= me" > > 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 implicitl= y > > setopt'd by assignment to $HISTFILE and implicitly unsetopt'd by =C2=AB= unset > > HISTFILE=C2=AB=C2=BB; and then the default (zsh -f) could be to have HI= STFILE 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 e= ven > > 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 an= d > > 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. That is not an argument. Do you care to explain why? --=20 Felipe Contreras