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, FREEMAIL_FROM,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3144 invoked from network); 24 Aug 2022 19:26:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 19:26:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661369172; b=nI9hmbsfkbYnxuFrmWHO2fD6BDObVQcBLJJGe7g6LGRNBIKZaJ1m5FvNS2Bx6BsnwVAdDftTxe Ix5Er8+QmGrmaaZQiFFKbqhwIzEzldK1nlBVGBZD+tJZ1YLF19WFj92B/rDotZNziQnjarZO/Y r+/7bm3hw21f+MWoO9y0MQfo59Rzc4+qVGQcbP3omhNYKHxuIjIUIflK/8UwNgaBFucGfkf6g5 pKlCS050+2YFThwzhg8ow2Z3q1guzd9H/tJYJNkqK7o85qqy7u3odfXQq0d9cbIYthtpk4kob6 FTWsjtfscm4EC3DxsOXOFnw8Q0YOJwiFWoSCOKYI6EWnsg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.15.19; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1661369172; bh=qm9mq9nvhf/NlgMUWJvpIh24+CZQJr34dtVEnzKuKWk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=JbNx93VsPnS42QoWv8/it22y6peLpsbBkS/iKVYd/XV8pSuYgY3oXGwzBC5sw4EMZAJhtSF09N QsUE2PwSX8TEJodE40mbEWlJ5qB/wZFYAqW0fpIP/qkUNwnNrhaMT7QO9ySO5CY1Q4bPzs4pOD I52I8OZqtNT6oVoweSt9wsX6JjBA++Rh+2ZIOLBmO9Gp99wjothUczaTSf+ppuhhdWRZiNkdq2 5+qLOg1/JFIcQ8jDxf98fCoS2LUjIbljNPtuUlChbuaMBSO/+dpYwZtR8/JaWxVCfeuKyjD1rW LyoOP9ShNYRPzvkqw6ObrIJ2aLYGm3yoHsqScuJnbsEvTg==; 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:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=rmAioJPHWKAYW95jDyeKOwPXjucx99XsTqKQmiQRISU=; b=SjYVQ7Fc9LfsEbjPjiDWUqjG0R sovlXIg+IKnWpIvkcNKUTHO6Tw4l9ChGyrN9GE3YLumbS+/R69TtPOgA90qnLiF5jq2fOuuSpCVIg qx7nOSdAPhQaIJ71QJ68TANKqanc+2DJtfe9te6ItAnfqJvveKy5J9a9M32wVS5/XFg4SAHTAXSFm SbUe1f8tN8ktWPOk4yk9QLMRnfe2g9ZEPqVn1mPRp1rc00Z5aANsrHLUstrRgmZLDe8hzYzInyUCd ClK95jfumxCfP8sJusXcGOQQbXIEcJg1H1SIIqa+eSI/zlrnghHgQJol54jjjiN4m9Pu/de54G42D ww2l2gvQ==; Received: from authenticated user by zero.zsh.org with local id 1oQw0y-000EYY-Cg; Wed, 24 Aug 2022 19:26:12 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.15.19; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.com; arc=none Received: from mout.gmx.net ([212.227.15.19]:36387) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oQw0c-000EDk-QA; Wed, 24 Aug 2022 19:25:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661369150; bh=qm9mq9nvhf/NlgMUWJvpIh24+CZQJr34dtVEnzKuKWk=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=SdqcJ8OCxPDPs2nnddeLu1Vn59Hi485N0dEtil87s5YVWaxM0DMbttE3fi0ouS1EK PgB+CyOLH/O+6bJWPDIv+y9htx+5tba7Td4hgmYC81o00AVOigrSYFJFbjOlrscjuq qvyz0u9OWkiXSLRuH45Bsh9c6plfwWAdTJTfVc9A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.0.0.14] ([71.227.85.179]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MNKhs-1ooUER3oJG-00Os5g; Wed, 24 Aug 2022 21:25:50 +0200 Message-ID: <4bd03e2b-947d-4aea-dfec-f7a2f3e99aa8@gmx.com> Date: Wed, 24 Aug 2022 15:25:48 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install Content-Language: en-US To: Felipe Contreras Cc: zsh-workers@zsh.org References: <20220824043145.165779-1-felipe.contreras@gmail.com> <20220824043145.165779-4-felipe.contreras@gmail.com> <7779ec6b-10d5-410a-97da-5ec545cd6e1c@www.fastmail.com> <2f703212-b093-c7ed-7295-14dd39b75c96@gmx.com> From: Eric Cook In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:v+Kns8nzb94NXgXsXOFXXMeBQ9rm2Oi4ulrhsGcZC/PshMk9irB iUfGCE0PyNyN1tHdIbhAFTlXy68GZw7wZkIEAoZdQBpydX7jCHZc2ucqEj3NagZIo49300H kxfbDvjFdayJKQiG+P9iBB5D5YvLAMK/1wGXmxzqU8lvV+VLxKn1APuMKeAXlON1zigUZFp JztiVec/LoRNgjLpYv5Lg== X-UI-Out-Filterresults: notjunk:1;V03:K0:CptrZi4hiRc=:awx2Sjqe08yVVe3g9Hn56u X9vh6Ojmg0y554DS8IUXrLhOr5nKk9Y5MSi6HCkQ0lLedDY9i+7hWr3UlKreYeOTBsb6VFa4+ KkYViEszGV2zVBYAUrEPukeDNFNPr7vhjy/G/y3f43trqZhaRrCTwA5Fy4SelXRW1DYOkDwv7 kMCJIxyEjn03CD2vLnVkV173chRDggbHHDaQnUt7q7ni8dBuz3ZXH2wDBUuI1qxiCu+uYcM4T WzuK+6bQO92CyNphqhuCKV9PkvXi+VcNq7IfIIwa45jjlcU0SKHKzG4Q3KDmLW5Py1J4cDZc8 R097KOcXnhyYEgGLi+j7ogiCWTog2JPJDHBSokZ6Kx0PwU28FYdcAGzLx4ibTdHWBvbT+WkRa 4GkSRgNWOC0vOSXyFjEMiu4yk9FZjfzOanL5tVkbPVBgtOieyDR431zyikDY9IpB3SMzSENjw IXlJo4G+IvctfBvQtlJfcuQV9kwAJRFsigKrgNN2thJOITDVZGsMrmLG9vaX4n8HKvq9AQnKN D23zwuwxmpZCBHSsdQRpQ8eESgpdj56y29xpu7ZoRKuZ9PXWt3jJ7q4uSNUA8dK0HV9m8XbAs GtC+BBJJkOrcpHJm6qaM1j6Pqapx7CEBwtxSqNCmNDNR4X9+Q8OCvn7HaW9MpaKgFgvdejXlD SMGDpDHcCLOF2+koWtdcjudXU7yxheLmj18kDpMMC17ammVPbHFpinuR8g9ACy3qim8Svx4ig HjDTA7Y2tJ0cvKn3vP+zE07fvwwHQpaIiOCQ3i+NpHvnUdMxiY0PlS6lnEof86OWaxM4/aCm5 ENhwJvtDXYeRfD5flIhsrWEhtgOKVyOx5LpD4QDVxI3MZ7Lz8X+2BwpeO8fUF2j6jEQLIGZEM cj0tP8SEcFKk8edZl2hBftNeq3HV60mbrAKq74Th9YdqHhi+zteACbGYydAATopR26qxbDw92 hBVKD93mnZEIrSy2SkXOYXtoXMxzcZKW6yO+CA254qY8P5sBVy1NM2O6ZcT68K2KQWs49qp1w yViLVaLGNlJRCHXNu4PRn+Teuju3eOiUdq2nnLXZ99PRkgvZhZJz5y+ZrPjh9nISP2QldNIXy sLMUUMiPsL1HuqMb58IofhpDtoANmXxR18WLwz9GJj5lfPJF2S0acGdXA== X-Seq: 50509 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/24/22 15:11, Felipe Contreras wrote: > On Wed, Aug 24, 2022 at 1:33 PM Eric Cook wrote: >> >> On 8/24/22 13:32, Felipe Contreras wrote: >>> On Wed, Aug 24, 2022 at 4:12 AM Daniel Shahaf = wrote: >>>> >>>> Felipe Contreras wrote on Wed, 24 Aug 2022 04:31 +00:00: >>>>> Better to use the same HISTFILE in both. >>>> >>>> Agreed, but... >>>> >>>>> +++ b/Etc/FAQ.yo >>>>> @@ -1629,7 +1629,7 @@ label(321) >>>>> In zsh, you need to set the location where you want the history= to be written >>>>> with tt($HISTFILE). For example, >>>>> verb( >>>>> - HISTFILE=3D~/.zsh_history >>>>> + HISTFILE=3D~/.histfile >>>> >>>> The default name should include "zsh" somewhere for coexistence with >>>> other programs. So, I'd rather keep the FAQ as-is. >>> >>> I agree having a '.zsh_' prefix is more consistent with other >>> programs, but then that's what should be in the newuser-install >>> script, no? >>> >>> I actually think this should be the default, no need for *everyone* to >>> specify this. >> >> Yes *everyone* should specify it. > > Why? > > All programs dump their history by default. Node, python, ruby, less, > mariadb, and of course bash and ksh. Those are the ones that I can > easily find. >To avoid the problem i mentioned, also there are existing users that like the current behavior since they do not use shell history. at work i don't = use it. >> Aside from the arbitrary bump in HISTSIZE, if HISTFILE is set by defaul= t and >> zsh is invoked with -f which is common when debugging or testing you ge= t the >> expected defaults. But if the user typically increases SAVEHIST from sa= id >> default, because regardless of what you set it to, people will change i= t to >> their preference, you create the same problem that other shells like ba= sh have, >> the truncation of HISTFILE to the default SAVEHIST upon the exit of tha= t zsh -f session. >> usually without the user noticing for a period of time. > > So because of this corner case that 99.99% of people are never going > to hit we should bother 100% of users. It doesn't seem like an issue > worthy of so much consideration. Moreover, it could be solved in other > ways, like not setting HISTFILE when NO_RCS is on. Starting the shell without your dotfiles is commonly given advice when tro= ubleshooting weird behavior, found across this mailing list, places like stackexchange = and irc, It's not a corner case.