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 18733 invoked from network); 10 Apr 2021 10:41:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Apr 2021 10:41:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618051291; b=cJoc9xtPkdggFX9HU/8MALNrrI77LZSpVMiPM/xe/TgJsnS0DVNtWPdtJXNn+pnhSPTdfpO1kD F1gqohAeQwYQCYhuVk21xDxFFhA/xIx2bW/jb85DNSu8gRDYOs6jw/PFhqq0dUj0Nm1LRxiLO9 ZFYEsRNtgQByO6AyIB2SV44mThL1YbEVUKAnXfrZ31DKnTAOWHho21EwtVeh6RzpwHRmaIKooe +fkZave9HgYWnXxcSDAwrcT2kCeGBphqat2xiDKuhkv1BMT1SKIHodz9HLqcRkFKxbnXq/Qpi+ dSZ7xbLfLOgzOfhWZPYLmp8gkExSdyaSKVmdQfYZ8QExaA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (82-65-50-238.subs.proxad.net) smtp.remote-ip=82.65.50.238; dmarc=none header.from=prometheus.u-strasbg.fr; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618051291; bh=5SXvyqnuHJZSKzqmP6qhlYM9CY//BMcillkn1WFbxA0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature; b=ETe6u0SWO7TSJT7DBNYTDLdv2+k9uGf2ucjrURsxwOKwksxWYY0Y5Vy/iriaWATNjp5okrbb5t w7+jWA/Fbl6HscUUMQcZ9XKRO3wAPiccWvFZzACpcuNKt8g9gaTpI8APBICXszot31wlgGq0Fc xy90Ye+To69Z8A35HiY+Wr62c1Zecwvf2GdzodOJ+NDKSXKjP+G/vepc75j3uDKSGacGyrDLR8 OXaM1Jt9f4jwt2eJphQkcPzQsLV2qjToQp9FLxrBC0eo0RiDWrioMly2KET2A0SFud/lebbSbu nqsY5KWorCWru/ijFnq+gw7VV3ZCuI/cPGuBVrxQJwc6jA==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=5SXvyqnuHJZSKzqmP6qhlYM9CY//BMcillkn1WFbxA0=; b=ySC1BptV9Egs/f/k0jjwr4daoP wLVwJOWCvpI+LtKEFX1+jPeAXEFzGVunnM0ukq+uOT2KqvAbtjodQ1KwB9Ahee5JJg7VEZ4VTRFaF I24/rObjztQLqAnWiHn2J4KcGm7YB+U9sUbsrRMW+/ndYff2jIzFgBtSLI1l4rzV1OqmwWun/Cq7z ZFLb+ZlPwFV8ghGG7ecJKQPnIyaT4HWXZxcyeooqZrfXCLL/xI9n1gUDkLhzkgo4IbCtkrziorRvk QkwRduxX+IrqA4uLRF00Qbbpm4vV4VVtXD4JJfwxoqiL0PBQVoR3nGn0q8hi2gk8tDxndHKw8v6Ay seLy8Gjw==; Received: from authenticated user by zero.zsh.org with local id 1lVB3Q-000Dvp-0g; Sat, 10 Apr 2021 10:41:28 +0000 Authentication-Results: zsh.org; iprev=pass (82-65-50-238.subs.proxad.net) smtp.remote-ip=82.65.50.238; dmarc=none header.from=prometheus.u-strasbg.fr; arc=none Received: from 82-65-50-238.subs.proxad.net ([82.65.50.238]:59914 helo=prometheus.u-strasbg.fr) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lVB0s-000DGP-Jw; Sat, 10 Apr 2021 10:38:52 +0000 Received: from localhost (prometheus.u-strasbg.fr [local]) by prometheus.u-strasbg.fr (OpenSMTPD) with ESMTPA id 10b3400e; Sat, 10 Apr 2021 10:38:49 +0000 (UTC) Date: Sat, 10 Apr 2021 12:38:49 +0200 From: Marc Chantreux To: david rayner Cc: zsh-users@zsh.org Subject: Re: alias with a parameter Message-ID: References: <20210407070518.szoet4rxbouwzelm@chazelas.org> <2902540a-9c07-4423-b0bb-6802af6e97a2@www.fastmail.com> <48bef9cb-fea7-1a17-96b1-dd4ae7bf54aa@spamtrap.tnetconsulting.net> <20210409224930.GB6760@tarpaulin.shahaf.local2> <41baeb56-de2f-2fb2-3544-ce703bf96223@rayninfo.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41baeb56-de2f-2fb2-3544-ce703bf96223@rayninfo.co.uk> X-Validation-by: kb@spambri.de X-Seq: 26646 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: > I suspect that the case-esac structure is a neglected control structure. indeed. and combined to the neglected alternative syntax (man zshmisc) (probably inspired by rc, as well as the neglected rcquote option), you have: pd () case $+1 { (0) popd ;; (*) pushd "$1" ;; }