From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 6443E213F0 for ; Wed, 5 Jun 2024 18:13:56 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1717604036; b=RiIvobJhmgCS8sd8OBYZ2GjvbVAqXT+PKtUJryOQd5zzFASYteSSvPXIFsm0/S4iIIR2kWi6NY bwwdKSZq6ZNjEQpQbVBJAZz+1r8jXwhAZUF6hgQga+gIfO8e8KK0qTKPUxL2OPB3JxPJ8qzF0j tr7+IMUAhRdZDensIX1UJ1WnqGjT86Zaoe3ffvo8nTTSH0xHxkpgiTAVn3eHLMn6G6KJKYbjJS BF7fdBPwMpx1iRj+0vuROvHCKJ6priv5Ub9IhOmhHG5R3x+gP2T2mvh8r7jbBSfucQcjZykOgm VqmSDpI5jweL4COzpdoTA+OE9jeZp3S4FYwmM5osltuADQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; 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=1717604036; bh=BKes+G3Es3mopTo+WUn5sTDGJtwz2rhqIbuDcgJQekg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=ny6y/rY02392XUXs65Ih49wiRO3RO6nKGV1ZfMCeocd38go1fpj6pc5rhDBoEMwhsn+YW0hBTk 7rYzuVx1512rdARqd25MTjXk2IH7L3SEub8s+nxc/ESRUQJ6xK4fqFzryH5R6D0qqw7Gf9zmyV xgWLP9vRO04cjL+dt8r4/TfKSXJtnGXAipj3snKeTRpZAYlfVGDcVgOVhJ1lfTJ9R4227D6HVv rrIAgnAXTffMDf0fkegnsn5dmjRKBfYYiLHlgVufu19EDfF0In09j7Z48h09qVfUpyQ9ikXjee f6NOELwdpCT9bL0RwKZeTqlCQIm4EoWR8caytaDI1oWXCg==; 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:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=VB0vgkk7ivbU/TC20pJM40Z6RlAFNjVTMRirgeoWvDo=; b=O9dbcrcmBdcdkUukxqs0ws/AsS GQex2TzX/X4Yz6QyKYnC9OmUZ5CWProf8nE+2YJ4NyXdv/3keKTxIuXeLbGKbAXNBooP1mqxYrDXO CQWDRrhsEQY2u+cUOLrjHH1739NrZLKOhKfZbY/jrSsDYMTOxip9ex2HxRv93rKguuhxsAidrNNSl PMq3oVHz+nOaLYRxbcxmNwchhkzt4DCuPbfbcYgFzUmYzFltK6mq8FoiKwAxVm/Zk+WJvA7s8mRah MyYLIsTJqncG1QSu3knELzSJfI4zo4PL9GvtnygE1EuCuTmeBcqfJEbNN0LDDQsfIGUx/2ZrhSVbz 7hcw5BQA==; Received: by zero.zsh.org with local id 1sEtGs-0005HC-W5; Wed, 05 Jun 2024 16:13:55 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:39527) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sEtGS-0004Zi-1D; Wed, 05 Jun 2024 16:13:29 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0SEM1CXGX7GR6GS0@mta03.eastlink.ca> for zsh-users@zsh.org; Wed, 05 Jun 2024 13:13:26 -0300 (ADT) Received: from [192.168.0.15] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id EtGPsMYEaLngTEtGQsm641 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Wed, 05 Jun 2024 13:13:26 -0300 X-Authority-Analysis: v=2.4 cv=V7be0vni c=1 sm=1 tr=0 ts=66608ea6 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=pGLkceISAAAA:8 a=S-78Ba9a4fFF3X9oQIIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=zZCYzV9kfG8A:10 a=GnL3hhYbixvQM-Fcy1YA:9 a=vRLw9TGJ7yzvUDzH:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeliedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduhegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------vws3ZmOTQG3dBY8GrRiejIng" Message-id: Date: Wed, 5 Jun 2024 09:13:25 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: history puzzle To: zsh-users@zsh.org References: <32c690d4-fe7f-4d89-ac99-829fa64cca15@eastlink.ca> <81576af9-80b3-4bcd-b23b-c0d67cff1870@eastlink.ca> <2603f68c-1e38-44a5-80e6-0bc6d3bb4d27@app.fastmail.com> <19c7bc51-5f28-4307-a0f7-35d0e2105811@eastlink.ca> <3ebb8929-cc5b-4174-a6c7-6c394afb0111@app.fastmail.com> <7d3f9a1e-f3c2-459a-b549-0432e649036d@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 30010 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: This is a multi-part message in MIME format. --------------vws3ZmOTQG3dBY8GrRiejIng Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-06-05 08:53, Mark J. Reed wrote: > > History expansion is purely an interactive command-line feature; it > doesn't work in scripts. If you need to access the history > programmatically, use the *fc* command (or *history*, which is > equivalent to *fc -l*). > > Anyway, that's what you were reading about. :) I wish I could kill the whole thread, it was a misunderstanding from the getgo.  Not the first time I've ended up barking up entirely the wrong tree.  And with hindsight it is obvious I wasn't looking at a command -- but I'm so used to being baffled by the manual that I took it as normal ;-) > -- > Mark J. Reed --------------vws3ZmOTQG3dBY8GrRiejIng Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-06-05 08:53, Mark J. Reed wrote:

History expansion is purely an interactive command-line feature; it doesn't work in scripts. If you need to access the history programmatically, use the fc command (or history, which is equivalent to fc -l). 

Anyway, that's what you were reading about. :)

I wish I could kill the whole thread, it was a misunderstanding from the getgo.  Not the first time I've ended up barking up entirely the wrong tree.  And with hindsight it is obvious I wasn't looking at a command -- but I'm so used to being baffled by the manual that I took it as normal ;-)


--
Mark J. Reed <markjreed@gmail.com>

--------------vws3ZmOTQG3dBY8GrRiejIng--