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, 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 12698 invoked from network); 27 Aug 2022 17:59:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2022 17:59:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661623167; b=KG2oFSXFE5rzmObdGXKHkslCmdoIAJyk1E8LK0bPNO1Mvr9lMYNy7gC2nx8UcuEobTGPoIVnNm pvhY68XpqQChCBT97efL2pYHhwFTlQezq7n4x2X2St2H/0FXjK4Wbd1WGd6uddiXtiEmVemQkw jZL1pAY4lOvHUjAb2Qjv6gYWHvkS2NnF2YOhV05FNEUTSFpxhHH5pfw97zsEA3/72j5gQbYNCW +EfXSQWaFKvb2LGb8T8xwOsgmOeBiURcSxNBIt3E6NeqEC5uW3BAarhFdQgslUk8ReB+id5er0 +xdtJT1rd9CBQeOIeQn5qXtJE+Wa+Kjq0xZZKLdNwUSHxA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout5-smtp.messagingengine.com) smtp.remote-ip=64.147.123.21; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1661623167; bh=Qmbu87Iv/dkrFtpSUcWFo+hq1m7SKMbV0qzueGzCiR4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To: Message-ID:MIME-Version:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=OGcxPKCn8ooYU1mu5jGXyrbK4iqgIeI68GkeGWDzwyNUw+qh3xg89zoFWeonERnq6GalPQM5Yf 1RxdBJ72UgGJ2mEU1vQutF5ERWAMsO+zx3fVE0GytTHAGroHF60Ur/aQGlRcO7iOeaIqH7iaXx RPncqlzCWkg2X8wpN4JyOHC8fCxkK5I1VOyAKncc7twCtegoPvatTrtuMIO/VULMW7SrUdS2V4 rFyGa/InA0HCwumLCKbnKWB0sci0+0AXBnwCqGFndhnWIUcK7/W8OP46tfrWeUC/fIhGfG+9n+ j35knjGA2V3oK7uvrFoH73f8kJIJG7YyBa3U62NLeCxxeg==; 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-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=TsC0gsMIaSK3StUQfLSCaG6q+yecRWrVXTzq1J+bwfA=; b=bpY8PWdGIpKeZc2WmkN+O4Yy0h WQXtaHk0KKEUuIDe6VWhHsXQYucZdXfgPYZu3VRveSdPr58/cVov76Vt7P7sRMVSwUIn5sOrN8n+M 7s2TKBiO3cn8PNpj+DKkp+81zr4GhsvVoMwfngCGGsV1lI7G9OKnjxAYHlxCYyaVoSy/znCfo3ujq pj/ROFXEgNdH0p5lkO17QIAaB0L7lMGJ/yUmgA0Dsq3TE7Qd7BC7oOm0qSy5cy8Aw+Xj/rD7h2rD3 GFQtTedouoUhNfMnxp+4C+HMBcf/AHBaSG7Z30ysRhdQGXndDrzxise+LGkFDj1ec8mB2swncOOHs DZSlBlhw==; Received: from authenticated user by zero.zsh.org with local id 1oS05e-0009wY-KL; Sat, 27 Aug 2022 17:59:26 +0000 Authentication-Results: zsh.org; iprev=pass (wout5-smtp.messagingengine.com) smtp.remote-ip=64.147.123.21; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:43757) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oS00U-0009Tn-Sn; Sat, 27 Aug 2022 17:54:08 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1597132006F2; Sat, 27 Aug 2022 13:54:02 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute2.internal (MEProxy); Sat, 27 Aug 2022 13:54:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1661622841; x= 1661709241; bh=TsC0gsMIaSK3StUQfLSCaG6q+yecRWrVXTzq1J+bwfA=; b=V u8RJQAy6W1PBcZ9Vh1Dnr8oFYHFYjGF+8CGVYLh1Ip3MvI7/idBoLRr/ePD7KDCv 0xbdrAEdYQLflo80ZoFGwad0PAPnkhoxr7J6qMzOIreDCk54aWUj3+lIN4DhZkBQ N/l01UCaqiNuj1+BcuGIeLeWyZeJ9xmFG3CJgJOnN6bSLJ2+M8Z2LsSyTMzd3Npc mb60umvOevbuxA9zX8gjXCNtFAIOHM4NO6p7tt8M92vNmk4+4vnfcdJRcvR7cr/R jT6OSCVj9JkBMM7bPxbHMfh/kngm7pzB8Gzp2Kcq0zU/Dh+a76Unl+1+E3agF8ED 1xYcbj2O9Exho0pMYzvCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1661622841; x=1661709241; bh=TsC0gsMIaSK3StUQfLSCaG6q+yec RWrVXTzq1J+bwfA=; b=zo4PesS4SZX71u1Yg2EzVhIA7+al7ARI1q3pOak9fk8G I7d7nJG2Y336k0jcqge2IxrvBwh1jGW3A14v2NbcjGkritaMwhXMdf1TXAvL0Bvy DhRcTij48EnKgEYxQu+Bxd50P5pU4Eto7oQfurxvbWhLVmK/hQsImJLEPzmbH9ov LC4ozDPo2D5Q1FVNvyxpcc6JiovANxFVkoXIxnp3JNiQzYYDm4LibTU8lXgZdM1o GswnKlWpDP68R80+Hi0vReNBHXOPT6U9+8CcuvQEcBz5UIUP/nycS4XiXT78epGP UZYlaxlXpZWy3OGNyO/lzgUGaXCgPvUGJ83KeQ2P8g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejjedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdff rghnihgvlhcuufhhrghhrghffdcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrg hmvgeqnecuggftrfgrthhtvghrnhepiefghfeftedtgfevheeklefgieekhefgkeefvedv vddvhfduleffgeehveefieeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3A6ED2A20075; Sat, 27 Aug 2022 13:54:01 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: <29bf46ab-d089-42bc-b74f-ff178021665e@www.fastmail.com> In-Reply-To: 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> <5e85657b-a7c6-45a1-98a2-3e7289402429@www.fastmail.com> Date: Sat, 27 Aug 2022 17:53:13 +0000 From: "Daniel Shahaf" To: "Bart Schaefer" Cc: zsh-workers@zsh.org Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install Content-Type: text/plain X-Seq: 50542 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: Bart Schaefer wrote on Sat, 27 Aug 2022 15:55 +00:00: > On Sat, Aug 27, 2022 at 8:41 AM Daniel Shahaf wrote: >> >> From a more theoretical perspective, removing the need to set HISTFILE >> would allow us to one day move the history storage to something other >> than files > > Given the (ahem) brisk adoption of alternatives to GDBM for ztie, that > seems unlikely, but if it were going to be implemented wouldn't it > more likely be as an extension to one of the existing history > parameters? Which parameter? I think such an extension might work as magic syntax in HISTFILE itself (e.g., using URL syntax, or special-casing arguments whose first character is "@"). None of the other history parameters seem particularly suitable to the task? >> Bart Schaefer wrote on Sat, 27 Aug 2022 02:24 +00:00: >> > >> > I haven't worked through all the details yet, but perhaps a zmodload >> > module? >> >> If it's just this, then, s/zmodload module/$fpath function/, surely > > A shell function can't be static-linked to the base shell to guarantee > it's availability. A module can be left out of the compile; a shell function can be left out of the $DESTDIR by 'make install'. A module can be linked statically; a function can be defined in /etc/zshenv. Seems like six of one, half a dozen of the other to me? It all boils down to "configure and make correctly", but one of the approaches is a lot easier for users to edit to taste. That's assuming what the module/function does is just set the three parameters. I'll be quiet for a bit so people have a chance to weigh in on the idea of enabling history by assigning to a special parameter or calling a builtin. Cheers, Daniel