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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29255 invoked from network); 14 Apr 2023 15:28:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Apr 2023 15:28:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681486119; b=EUZEQ/k/l8cQwTTAj3XLRF3OUTVqU4k6ZfT04Uoh5PX9/0deZznYfzOIStGdM/hbGlbqx9O/mr wnNeDBt4yPGEX7L6seiGWOouUAO1ZmaZ9CFFb1fB0scRtRqStsmg9C1rfbSLY5vO0aSN3j1dm9 ajz3G4l0jQfGRPkVQk8NxKZgzPYQW2yu9FI6XBaOYD5LglYG/aMeylh0sn/HZNPne4gV/my9Ti uAENWHUBey4mCVPoy+gYEYTLIIsQ+M4ALZYbrcXhHCmYjb67zODQHBkXcbD/qomz/CGMqzxlE4 kJl9AI30CSG+r3Gje/oKNd9pMUT6lxqYWUnpU9lDGa+87w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1681486119; bh=uXEkRKiwM8gYZgo5EdDF74DWdwJXsjASw+rdl0JAHXM=; 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:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=F9KqtcYKxX19aPSUJegtHRX2x5HD5YldWFRqVD7979iokZhHRBr6HS39j+hwBkmDxWMO0ht656 b4SKmG2xAri0jUHfwc5lMLZuJdRqtZCaI2U6ntvPJxOfqlWztwuDBH/h2nNM5IpFROL7/C6PHa dDpfKvYDZpMxCrWx5SgR78SLwDwuU/VI+wc0CZLbw/KOimC4TB0EhC+USr6TOZrEzj0qOggNWx 0KarTJaGm0CmRon7eq4iGeWPihQR8AzFfBXWqv3dBUnowwWF7LmiYhXwND5weHzJDqCwiVu3N+ 07Pwzgw+F9eq40UVn2auLlSsFuhPt9QmN4m8eP77j6jnRA==; 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:To: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=XIZ6oNg2MADcz1DoWZPsikj/GBuHjU+3TOzkV44p8eA=; b=Q8tT2ekPf4TEqEL8ZDZ3qhVh50 w1Lu8t4tO6HZsxN8GgZIQBonAsB5EehxvQi5iMFY4smtZPxX/iZgWov+LbeETzyIUnLAkjy/mnaSj 0ubDaRhxpNMFTTVCRCCaA5bSSxg4wE0CDWN9epQR6WZ3He9DVkE7BjyKJOo0BDm6h3OxUm4gXhlmX 7N5ZPCPvjFAaVQaZKkfgASx1yIMnGnJPPOVZOAB/uGtJ72a8TKgGmR1AZ9fAfPsRAQnnesl1T5epn yeubXhstpzN7IIz+UC9TKUfyClilPTz9x90r1Ap9cBXE4Umjyd1cIsrGenUwzTKwg00vcgudZXUuG JwNVfuAg==; Received: by zero.zsh.org with local id 1pnLLq-000LWA-Sj; Fri, 14 Apr 2023 15:28:38 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:32770) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pnLLE-000Kms-4v; Fri, 14 Apr 2023 15:28:01 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0RT400C6H0ZFDWC0@mta04.eastlink.ca> for zsh-users@zsh.org; Fri, 14 Apr 2023 12:27:59 -0300 (ADT) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id nLLCpZ8tvhhvwnLLCpyUa1 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Fri, 14 Apr 2023 12:27:59 -0300 X-Authority-Analysis: v=2.4 cv=NdAglUP4 c=1 sm=1 tr=0 ts=643970ff a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=nd11StkG8V51038vxP4A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeltddgkeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <9a1f77ea-ee4e-95ff-a571-5cd3ddce6cb2@eastlink.ca> Date: Fri, 14 Apr 2023 08:27:58 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: .zsh_history Content-language: en-US To: zsh-users@zsh.org References: <81609CF4-42DA-4E0F-A6E5-C5D58578B4F7@easesoftware.com> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 29021 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2023-04-14 07:36, Felipe Contreras wrote: > I do remember that one's control of history is essentially perfect, you >> can get just about anything you want. History is one of those features >> of zsh that is tractable and understandable without too much head >> scratching and without any weird gotchas. > I couldn't disagree more. > It could very well be that a closer examination than I've made would reveal various mysteries and gotchas.  All I can say is that I've never wanted something from history that it couldn't provide.  One exception: "$ echo one; echo two; echo three" ... you can't, AFAICT, break up the line into it's component commands.  One of the first brick walls I crashed into learning zsh was realizing that a command has no access to it's own unexpanded, 'raw' tail -- which still strikes me as incomprehensible.   Pulling a command back from history comes closest, but again there's that 'many commands on one line' issue.  I'd sure love to be able to pull just the text of a single command.