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=-1.3 required=5.0 tests=FREEMAIL_FROM, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19102 invoked from network); 30 Jul 2020 03:57:03 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 30 Jul 2020 03:57:03 -0000 Received: (qmail 18583 invoked by alias); 30 Jul 2020 03:56:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46286 Received: (qmail 21887 invoked by uid 1010); 30 Jul 2020 03:56:54 -0000 X-Qmail-Scanner-Diagnostics: from mout.gmx.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25884. spamassassin: 3.4.4. Clear:RC:0(212.227.15.15):SA:0(-3.4/5.0):. Processed in 2.966823 secs); 30 Jul 2020 03:56:54 -0000 X-Envelope-From: llua@gmx.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.com designates 212.227.15.15 as permitted sender) X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Subject: Re: zsh: corrupt history file To: zsh-workers@zsh.org References: <271b648e-9c30-3333-cfca-dedf8df9e248@barella.org> <45badc15-202a-72f6-a87a-ee058283279e@gmx.com> <20200729230756.48e8c61d@tarpaulin.shahaf.local2> From: Eric Cook Message-ID: <1e250159-b06f-ad39-0cef-e27c5fefa89a@gmx.com> Date: Wed, 29 Jul 2020 23:56:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200729230756.48e8c61d@tarpaulin.shahaf.local2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:3AnDwvy3a2jX9D66dwVwpHTJdXXjra317zXniWzwUWrt5HdLXQn hsfWJADx08bsgB8LGsy6AL/oR3ux/4+6K4spAwBdfHNfRp+I+14mxgNe1CZFmAb27lNZ9H+ cZTVGA/L5mfhcp4DgafV8R8Kaf07MA3Q6DBk92NJ/HaEzxv8b+ZnYV7ViW8WXhEjcrg/sVp d8rM/jpnbnLHjY0MdeYjQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:G1ICJC1upgM=:UJufyr9uKAQeEFrn92Bw3L WoMc/xlY+4ar/F7Zvl4JjfTFfkoGyFL07Wr+ujbsFe83sDCBqkJr2ZYW4O271+8JAGa9N8qze Orie/1sokybLY7SE+Sr2D+xM6s5xrqD9cVszuAY31fB2sJCtj2dXpTIsbIZpdJYTgCMh8dumK jieUDh08TVY7J/gvKkCdI4jbNs+olQ+BqfGTeUsba0inoVVeqC9GzF9t/xE7aGYz+eQM0fTLD rS0SnID9r9VFEbkxNaFwdZFyKzab2bsqY9tMAuCEr/r1a11cAbUGK8XRMlUyLK94+Sfs7MKyB I3lzSe2a6Xop73cY+j/YR1DR7iRRUWNzL+m9MpMdRuGGNCWkFZN0GPU6768mCNH6l+SEO+UY5 4EyqNVfrTIcf51tGsQzjQLYknR4J0AqmmkE+5gpEA06y55M+gcmp+bHHRqqAv2sZPYTNRSGpZ A4UfkqHnllk4KsCy0TygDwVHsQA+FaQW5WNk1Fy2hhrtgaAwQy6FYVP80RcKp2SaZfsyTEzcl qFFHkxie7hmuM1x+yn1f7EEU0MlIP+4UslQYoqfPbOXcR+I9VJs0MfPwUZVV6UmUSzL7IHmVZ rVXr7PTPPJDKJMGAmQPiqES3IvJKzBi8Rn/0u3ciZfoKX9Dgnjqae21UQ+tI+xIkuS8Y4ad8l Xy/QqoZWje/YjUCb1tPlrthACxVq18s4aBkdTlPa4q6t9si8hbTTTPPI4NELXlIRzKZ8eKIZ+ kPfCRyZXprYuiUoKtQ1YFN63UeVUTrNHKTYwp0ppWAWyW3lnQvKKEduzQltuLEr/kwD4jl+mG G297Dfq3vd+8CdIApta0/MRNzB7OPBGauZNr8ysJ4MsROnCGfWYExZaQDLnuASgp4Y5aleqEh MSkShX2N/L9BmJ92es2mz4IfwQmyQggzVUYYJgH0hDkSLNskMg58Y0itv+p2k3REoNdiv86uV xP0HZMSXyT5LtiQEyBfohhrVNw3K/K4YDuAxfKAJUrqlohFMKKJdCL55oYqTWEdsrDfOjhPIX +WXU4nkJ7L5XWVA2kXuBjIESWfqWJBNqQSEinXoO0qV1sY8aE4ed6FGRAk3n3giXX68hLQWHg jem1vfluo0YvWZ/Ar172j/bUjJSyUJhf4Bv7zNwAEBYmBrCPBcPf1x4HZBXw/H8bSwMlV+0Z6 BFpWOomnNN4d4CGynoXxOC4ECPyL2yIe4JvpgxyGx6/Q25N7cIu1QG4kk5W7dIXZMVUFz/6KW rgDmgmknbQsUrZEXy On 7/29/20 7:07 PM, Daniel Shahaf wrote: > I guess you mean adding such warnings to zshparam(1)? In which case, > perhaps adding them to bin_typeset() would be more effective? As in: > > % export HISTORY=3Dfoo > zsh:1: warning: $HISTORY should not be exported; use 'typeset HISTORY=3D= foo' instead > > (and if someone actually needs to export $HISTORY for whatever reason, > we can make -h suppress the warning) That is indeed what i meant, but your solution has two problems in the exa= mple of PS1. if it is in the environment when zsh starts and the user doesn't set it, y= ou experience the issue of another shell's escape sequences being used that typeset won'= t warn of since it isn't being used. the second issue being software like python's virtual= env being written under the assumption that exporting PS1 won't cause an warning message in = the shells their activation script is written for, would need to now account for that. I know i have offered critiques yet no solutions, but i don't think either= of the suggestions is ideal personally.