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.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20861 invoked from network); 29 Jul 2020 23:08:53 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 29 Jul 2020 23:08:53 -0000 Received: (qmail 26165 invoked by alias); 29 Jul 2020 23:08:42 -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: 46285 Received: (qmail 924 invoked by uid 1010); 29 Jul 2020 23:08:42 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com 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(66.111.4.25):SA:0(-2.6/5.0):. Processed in 0.871157 secs); 29 Jul 2020 23:08:42 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrieehgddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfgjfhfogggtgfesthejtd dtredtvdenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghnihgv lhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepfeduteegveehvdfhte evtedvudeludeijeeuudeujeejtdetuedtjefhtdfgieetnecukfhppedutdelrdeigedr udeguddrieejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Date: Wed, 29 Jul 2020 23:07:56 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: zsh: corrupt history file Message-ID: <20200729230756.48e8c61d@tarpaulin.shahaf.local2> In-Reply-To: <45badc15-202a-72f6-a87a-ee058283279e@gmx.com> References: <271b648e-9c30-3333-cfca-dedf8df9e248@barella.org> <45badc15-202a-72f6-a87a-ee058283279e@gmx.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Eric Cook wrote on Wed, 29 Jul 2020 11:21 -0400: > another one people (mis)commonly export is PS1. i don't think adding such an warning to each > variable 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=foo zsh:1: warning: $HISTORY should not be exported; use 'typeset HISTORY=foo' instead (and if someone actually needs to export $HISTORY for whatever reason, we can make -h suppress the warning) > would yield much of a result when people seem to think that using export is required > to set variables, ignorant of the differences in environment variables and shell variables.