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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25148 invoked from network); 11 Feb 2021 16:37:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Feb 2021 16:37:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613061477; b=w3MBIfzIsCoyP7+tTn00qKRsnmLsTBedTk7lYuCGOWuh5s+EY98v0Ib0oHyM9v0cSRjFq1JCK9 2z8v1CS0r0HHlrhlCjzSAVXwnDeBPmNVf47G8Bs/HAx4MUAmcz3rucKOOznxmCdc2Vm+r0CtoE WR8AYD3noRtxvSCgZb5/fkAhzyfI8sGwY9xoH3YM9q2+U30Y1hMxoeTGqyWWQzE2W+JyiNbmgV akl8KQXX6yKcmTHsZFNWrX0nEDcc4lju8Rn4NJvfFyhI9u98tUya/fpuMQ3vFHRerNVveT+V+2 GQhM+mkasSoqNi3MD1mSAfbiHnqJNImgQm2eg5h+3IETkg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dmarc=none header.from=abc.se; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613061477; bh=nBR5n9RD9g+VeMh31z7FkGbiIK4gfuS6cLK5RVeQMcU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature; b=ZFwMNG3Em+1N0LrmkeJ2dDhGRvh52RAlS7BrRlUELyUD8BBGdphCwGyoXq6KHz0lgEENOfFnz7 gMnIiAmUm0WVZ57vFPKChMyvheLwqgMmWtyDZskByiIfa8Qa9MuGGQ2Ek79rYyNA/jo6hEdlT6 jiDScav7D8sCpM42zGUgjy8H1eGVecu0nN3MSapG1w24c2KJfGSpqD0zm9E/CNLRQ6tSWTDK50 nCXVrwWsxgUKWxbbT+lQPbdnNHwdBKhbvD7kXVJWZqdtS8RN2TX4HG314E2wac8urOeLX2bV5e IWjnJcz1u14DwPMjs6Y1wh9yog3s9MTGI8lVrTSr2+N7Kw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=rZbYTPxwf/otG/YjMtMKypGmmLvG5UsbnhOL643bTQw=; b=DXVF2ZEHR3I2Yye70aspxB/2E8 9FvbKvZ2SzjZIgKvZ+Gqy+eMf8HGF++KYUWF4T8IDif3P4URnSaLC01yWS91nzQy7sArjMmJtNfqj KOZTHtiXoCV8qkChlTGd6ybqRi12mF3a5ZWMErsdYWpihrISfqBjKDY0BwqnBPaeOEoAIsKiWrSRO kEEvNpOWGz91yJevRKf8R0yHCliGXPmSodqXfSIb3cxeFFOMZa/5n3l2oF7OkIc609QzR1Y7gbmt6 1Ti1eQh+21xx/aqAibWjtHOdjpOhHgH3m+HsZnAXCSNMfwUZSsL5/2vmAj0JwfOT4q/OmY/R8BQ74 a/tpOj3Q==; Received: from authenticated user by zero.zsh.org with local id 1lAEya-0005Z6-GT; Thu, 11 Feb 2021 16:37:56 +0000 Authentication-Results: zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dmarc=none header.from=abc.se; arc=none Received: from hekla.abc.se ([158.174.61.227]:22534) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lAEy9-0005BO-GI; Thu, 11 Feb 2021 16:37:31 +0000 Received: from eeyore.prefix.duckdns.org (83-233-145-220.cust.bredband2.com [83.233.145.220]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id d80a36c5 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 11 Feb 2021 17:37:28 +0100 (CET) Received: from box.prefix.duckdns.org (box.prefix.duckdns.org [192.168.1.50]) by eeyore.prefix.duckdns.org (OpenSMTPD) with ESMTP id e2258d7e for ; Thu, 11 Feb 2021 17:37:28 +0100 (CET) Received: from localhost (box.prefix.duckdns.org [local]) by box.prefix.duckdns.org (OpenSMTPD) with ESMTPA id 0bf2794d for ; Thu, 11 Feb 2021 17:37:28 +0100 (CET) Date: Thu, 11 Feb 2021 17:37:28 +0100 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: zsh-users@zsh.org Subject: Repeating last command from *local* history Message-ID: <20210211163728.GA8608@box.prefix.duckdns.org> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Seq: 26506 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: Archived-At: I'm using zsh 5.8 on OpenBSD 6.8, and I set the SHARE_HISTORY and EXTENDED_HISTORY shell options. I would like to repeat the last command from the command line history of the current shell session, without accidentally executing a recent command from some other shell session that I'm using in another terminal. Using "r -L" works, but only if the most recent command in the shared history is a command from the current shell session. If it isn't, the shell responds with "fc: no matching events found". This *feels* like a bug. Regards, -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden .