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.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 A215321301 for ; Tue, 4 Jun 2024 22:21:27 +0200 (CEST) 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:Subject:To:From:Date:References:In-Reply-To:Message-Id: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=vp+fY5RVxBz3RNIRFG1ZGXi0CtKJAINtWs4pZnqZAhs=; b=hy9CSwPgVqps38eAOVGUc+dC0N EkzZbURLu+vT8RIft655pIWxSPawVNMUAk2qAlYUmY5Jbj9cfnk7GFtos/hvQvNQfWLqG1cxDuXJ3 Jxg/gnjTKhzAoGcNMFPY5a+kAVYbPmwx2fkCZpJYElDD2uj2QCW40Zb8XYa2scNfRx5hLKONQ4/v5 dq6RLtm6yIMOVTXB8gn5GrcDC65uJ4xOC3QX4wFYqlxUuTnMx09yrCrApXv42Eityky4djEDzHAbz cObPKviEYRAxAMBuICrGaPKPRaYTuZff6UznRlGt3aUdKcYvifSNhMnVwWQ4lyF7B+lIS/2rQ/oVr ywgscZUA==; Received: by zero.zsh.org with local id 1sEaet-00042I-I4; Tue, 04 Jun 2024 20:21:27 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1sEaeB-0003Ic-Fs; Tue, 04 Jun 2024 20:20:43 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 520E61200066 for ; Tue, 4 Jun 2024 16:20:42 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Tue, 04 Jun 2024 16:20:42 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelgedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgse htqhertderreejnecuhfhrohhmpefnrgifrhgvnhgtvgcugggvlhojiihquhgviicuoehl rghrrhihvhesiihshhdrohhrgheqnecuggftrfgrthhtvghrnhepgfffgefhheejgedtie dtveegheegheejfefffeeffeeigeeuvddtgedtteduueefnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruh hthhhpvghrshhonhgrlhhithihqdduudehudekjeejtdegqdduudelvdejfeekhedqlhgr rhhrhihvpeepiihshhdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2410C31A0065; Tue, 4 Jun 2024 16:20:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-497-g97f96844c-fm-20240526.001-g97f96844 MIME-Version: 1.0 Message-Id: <2603f68c-1e38-44a5-80e6-0bc6d3bb4d27@app.fastmail.com> In-Reply-To: <81576af9-80b3-4bcd-b23b-c0d67cff1870@eastlink.ca> References: <32c690d4-fe7f-4d89-ac99-829fa64cca15@eastlink.ca> <81576af9-80b3-4bcd-b23b-c0d67cff1870@eastlink.ca> Date: Tue, 04 Jun 2024 16:19:30 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: zsh-users@zsh.org Subject: Re: history puzzle Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 30003 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 Tue, Jun 4, 2024, at 3:49 PM, Ray Andrews wrote: > On 2024-06-04 11:12, Mark J. Reed wrote: >> What's "history -m"? Doesn't that just look for items in the history=20 >> containing "-m"? > The Devil!=C2=A0 Had that in my function for years, thought it meant '= pattern=20 > following'.=C2=A0 Nuts, it works: > > 5 /aWorking/Zsh/Source/Wk 1 % history -rn "grep*" 1 > fc: event not found: grep* > > 5 /aWorking/Zsh/Source/Wk 1 % history -rnm "grep*" 1 > grep c52f */idProduct > grep c52f > grep c349 */idProduct > ... > > ... but I can't find it in the doc :(=C2=A0 A few examples would be so= helpful. See the description of "fc" in zshbuiltins(1). No examples, though. --=20 vq