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 CB3142649C for ; Tue, 4 Jun 2024 22:19:09 +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=1h5tUFrnAy99ghkTPnJ8J52wimf/6f87P4Vyg2lncpU=; b=HERLgJTab3Om8OX0+1E/wosK8W 8zhQZ1SMjTaApHj1PSwWpTSs9NdMsRLgTkf7qEjjYKUms4d3NsuFN49IN4W3f75URF9CSDOLxBruo 5wSKisLeQKo3xDOGWw9tVnun+IDOHej6YJNtj8THjCPffNZ/FmWJvkCW97PPplry2KmBSUVvkzL55 gQnXYfRul/LGpDCEkYyQ8wSuOG1qJIXjNmKpS0FujB4AiFTR7SmCzagHBZZMzsoalSkecynZ4/nNr eh2d7yMjikaobjIgTgiq/L11jCXfeQv/TMmS94Yxov0N3yZSl2OThYEW+4G8S+w3vL0gww0pOB3gR yDMuYKaQ==; Received: by zero.zsh.org with local id 1sEacf-0002p7-7B; Tue, 04 Jun 2024 20:19:09 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1sEacA-00026k-Cv; Tue, 04 Jun 2024 20:18:38 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 04B7D1200032 for ; Tue, 4 Jun 2024 16:18:37 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Tue, 04 Jun 2024 16:18:37 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelgedgudegvdcutefuodetggdotefrod 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 C63AA31A0066; Tue, 4 Jun 2024 16:18:36 -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: <538966f6-55c1-4488-851b-8ff4dc69c28b@app.fastmail.com> In-Reply-To: References: <32c690d4-fe7f-4d89-ac99-829fa64cca15@eastlink.ca> <0aec5772-b9a6-4d99-ba0a-820ea11c260a@app.fastmail.com> Date: Tue, 04 Jun 2024 16:18:15 -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: 30002 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:52 PM, Ray Andrews wrote: > Well that's a relief to hear.=C2=A0 So I'm not crazy.=C2=A0 My functio= n works=20 > fine.=C2=A0 I'm now just trying to figure out this "^" thing. Look at the "FILENAME GENERATION" section of zshexpn(1). % history -m "^" 1 # Shows everything % history -m "^nosuchstring" 1 # Also shows everything With EXTENDED_GLOB set, "^" matches anything except the empty string, and "^nosuchstring" matches anything except the string "nosuchstring". % history -m "$" 1 # Shows nothing The character "$" is not special in patterns, so this only matches the string "$". --=20 vq