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 4848 invoked from network); 24 Aug 2022 19:41:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 19:41:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661370074; b=fTddC19OkB0uncTBebx/9xfBcM0a2iOdaZDaDLAsXiFwfCRqeQnYRvunCUhXUn9ATR40IBUkMH nKD6VkgspeWm21VEadFHKFH/J9QXd3N+eIfJPPVMaBB/tDMc3+ow7LOMv8VsRWDKofjCNQ7qua /tkWZr27PoZoAHBoTUmtBg8Vco4LiCG0h0JLnpXSZ46RW0bI9b6AZhmMwksuVf98AdpgucqEvk bnzRJ60XDv0rPAcTwnNxylZFWYN404zRwOYlLxggOeV7jJn50MUT5hYM0H67HGAFjn8ygvTLr4 lVntFa8auz4LnNL+jyf3k9E+5NYpEwqab2aJq/8knZfFvQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.15.18; 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=1661370074; bh=RFw6pwhEyRFSDr6XTC4N0R1bSKMTjQr11aX18f3Nwfs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: References:To:From:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=Tg3S2R7qHJphsvI5fsHA2iPijhpr7mJP0nAyBam2E+QVAZU9IUpNG4Ui1TSP5XDIJ44OE7mPPw Od5ks6lz3bd6AiXGgKNctys7xxpyfe/p0yeyKYVfiulezcE2+YTp85KNZEMnyALFAqSm9wnteP WAVE2uzSJITR3uTbx7n9p3oGTKazEocl+0KrFFVHtYgRyO0LYbHs15wQhYqdrpQqAYBP/Wzrc0 v8w1QrFI75bDsgbORPFyAFpcGIylZtRiAqV2+x5H/nD+gNmqeinoS3a1HnbAB+kKfw87xyoWNM vLiLZTJj6+i5a1X969ScRK8DnYKSgaMLxPx9jvcd1y14Aw==; 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:References:To:From:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=RFw6pwhEyRFSDr6XTC4N0R1bSKMTjQr11aX18f3Nwfs=; b=UOP4RIwEw7Q7sHZItdNIJc4Px3 SxTNjKfZepkzt5a4srTZqDoLPfG7kKs4yDPhelys0vKqLoAEjmtHbr2upC984rPnH3wxVNwi4Nll8 hQKW6bown0dr6eYgFhDfyxbkDP8dqh2RQC0bJcoyu26dFl3OT9xTM1dePhSF7sy3vmXVjCDQJ3AYN Jqqfy2ZrjNQN5oMi9+fHfI+ohyNUtjfkVhv9aC+l2Fm7Q0SwWLq2pZc4DggIwsccAj9r19iwD/Yhh 2tL22SUS67LIkV5vvwwzbjILQ9dK19vJxfPvuLaiLCUdvQhB8q66PqgnWC5rPeEzDGzyzsXn3zPFB R70Cn/pg==; Received: from authenticated user by zero.zsh.org with local id 1oQwFV-000FTk-Ny; Wed, 24 Aug 2022 19:41:13 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.15.18; 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.18]:46241) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oQwF2-000FAv-6W; Wed, 24 Aug 2022 19:40:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661370043; bh=RFw6pwhEyRFSDr6XTC4N0R1bSKMTjQr11aX18f3Nwfs=; h=X-UI-Sender-Class:Date:Subject:From:To:References:In-Reply-To; b=FhpHbDoglhdZ3sylT2INXOpLAWqGvlgjldudlIXoTGQfjCmzqd2W8kIRweEPKA8oj OQSV0LWlaMSeoi0quFwnazdJBwVBLcDLsTp+HnvGCLi58mLuOECmJlEya+asfLbFT0 MkrgbR5wktsW2Ik5xEclu2usYjZgJ9fN0WECSPZE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.0.0.14] ([71.227.85.179]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MUGe1-1oqxR33Onz-00RIou for ; Wed, 24 Aug 2022 21:40:43 +0200 Message-ID: <1c826639-e517-7e95-750d-e0f517896d9e@gmx.com> Date: Wed, 24 Aug 2022 15:40:41 -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 From: Eric Cook To: Zsh hackers list 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> <4bd03e2b-947d-4aea-dfec-f7a2f3e99aa8@gmx.com> In-Reply-To: <4bd03e2b-947d-4aea-dfec-f7a2f3e99aa8@gmx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:efCcbMu+izv6SntYMZEkj+OI1ksqj6EIbxlnZUA8ghcgau2tDb8 3BSsG1P4GHOUneLJAXIdwYMpybBMRjAywi4sgdUg8RQDUgF8Wwu8pfg9CPU8ZJWEj377k/j cKp0o8HXu4DHNrLpZaTPRaLGcMlaiO9nAK35O4VZ9NQwYQII+6P2ubsFpMfe9KfTLbVkf31 LF4kiaXTNK8PsEUHDwCNA== X-UI-Out-Filterresults: notjunk:1;V03:K0:ny5m1GHrQiY=:G3J2yqEryIAZ5eo+6vMqu8 Jlstu2974LCoEilqTnGE5UOap9xJPDO4pbVY+4t8xMQ+Yy4dwPJJrw+UwXU/PAyRuDSTszP2z wZZOjGIFHHs90K3zZeLtSXkxQR506eo7B61d23md+xcOuc88zj87/wqnW2s+yJJIhOT3IXfS3 6PnH5ZuoskypZvCFObrA3gNQ4WCyZW2bUwM1tkPAyXy6z/fv6up5mtKjuqPOEPeEKOeU2bcYh T7hu5ukS4Ur1laOfNXkxxUdG9GhJX766JAZqpSNxivvIZATsC0Mt+1lzGitiu5xyPggEw1Hk5 oc8CjoZphK16X7bufzhi9v/9pQ0IKm7eb0fux/UHsU/31lPwzE86gQigpaqwwOIyp5/vXSAIo JYkAo/4ooRlOIpuozig0H7Hn2Za4z0EnWbV5R10YM+qfUYkolfM8UXTBHkuImT+9NdvkNqy1e f86YiDGLsGRaIWSzRhc/eZycsKblshUTk5zvXK/LljjngQKTTs5/cSeisqcswWGXmti03SRdn cRIXxiHxV/IhXg75fdW8Dc8z57BIbAZ4IHhRwzpFp+gZlG399jQE+FPgW2hXputJ/TohlGPg1 OaAe8R+ra3HN67zt/ZWKDt1wpgL1v+BkgU+29b4yBw68zOldZyTKMbLqGaxNGuvsutlpf+qOp 8wq6f81NdD/NMYcbdBvlRNoNC8X3WBeRpOCnja7okW8GZFcuyIprHYXKG4RMLk8ouxGFcdCq0 UHjjUmUCAzFV59xzANMP0A8LuCzFrZRUOtRkpJ2nnRzVVW1uJBe1aiWdl2fE4+qLHGQ/HBaub 303Yu3HcHdc8XxC1v/NlxQr+x6QkX2ixtboFyOTpNmLoGSQaF/i9J7zEu91Sowmyc/pV8NDS8 6HXV27KECGef4O0caClkCXojVI50waQRTx32Kv7hcB0RLl4+daZEUUoUlnPs/yLyUIL18ew1t rLGG8cyVQ1iEK8zKUvTHt7lP+qKm3kisRizoB8IDonFOIaeQMm4+sKDwwjjwqoDX6V9OpvDgi AJ5ML1TrJQg4ZDEi4OXdjS1l1AVvn+sRphm0VYTV+nQpAVGvD0dEWQNur1d6UmAlppayxrwEs 4uOgbdH/rTtNALTJ6OHydGxoa+NNk6yPTihJAyQeHmU6aCJV05U7w4SBg== X-Seq: 50510 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:25, Eric Cook wrote: > 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) >>>>>> =C2=A0=C2=A0=C2=A0=C2=A0 In zsh, you need to set the location where= you want the history to be written >>>>>> =C2=A0=C2=A0=C2=A0=C2=A0 with tt($HISTFILE).=C2=A0 For example, >>>>>> =C2=A0=C2=A0=C2=A0=C2=A0 verb( >>>>>> -=C2=A0=C2=A0=C2=A0 HISTFILE=3D~/.zsh_history >>>>>> +=C2=A0=C2=A0=C2=A0 HISTFILE=3D~/.histfile >>>>> >>>>> The default name should include "zsh" somewhere for coexistence with >>>>> other programs.=C2=A0 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* t= o >>>> 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 lik= e > the current behavior since they do not use shell history. at work i don'= t use it. > 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. *fixed quoting >> 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 t= roubleshooting > weird behavior, found across this mailing list, places like stackexchang= e and irc, > It's not a corner case. > Also the truncation is common enough in other shells like bash, that the s= ame community that created shellcheck thought to give advice on how to avoid it. http://mywiki.wooledge.org/BashFAQ/088#Using_extended_attributes