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 7457 invoked from network); 6 Apr 2021 14:43:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Apr 2021 14:43:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1617720220; b=YMnBc0KyV7fRctdpJTO2zuGiW975iAcOXgho2bI5c7XAD0fR9LgFg4jyWdIZDzCVyotdPO/09C nbGYZKA+x5ldqVDbhnsXLI3ZXLfg4aceik/3uBULNw48eaga27+TYVEEOHNNV+63mf5w+jEr13 eo3Ij1KyKXf2I9azqM+V7YmQT1RgReDyuc1OI+DMimoJx5+9fTSiXU4tQCFdYYA6RFz1/oU6Ny +uIftbmzMZmhYDjBNmSyBXHe5VWauZRp0ljKmbw/zmF36VigxXj4xj2Eo+MGa0ZZFde13MWEJc 9gMWFLNvblJwj4F8lZDRXreKT2oBosyM9ujsjjGONC93oQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (so254-31.mailgun.net) smtp.remote-ip=198.61.254.31; dkim=pass header.d=klanderman.net header.s=mg header.a=rsa-sha256; dmarc=none header.from=klanderman.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1617720220; bh=lP/DRaqVqWiptPvBVBEBK8Ks/ijuc0yn3I1pjb/5aIQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:References:Message-ID:In-Reply-To: Date:Reply-To:Subject:To:From:DKIM-Signature:DKIM-Signature; b=vrsb3hGI8iTT0QFcuJbl6HDqD8wapAFCw9D8ZZfsoBei6dCKsOylr9vhbP8J8IgMoq+F+xGD9c iSodZe+cQFr1TE8dWTc00SPjqCUtn/C0/D/5hGUwc9hBSmeSTvsZD61+i/PzjN/ROBmPmH6Xvc 3Ea1MAaAkaBonnJMsBxBl3HRjPzMLnoJf28xt7cauTWrzcAnNJRl3n+6l3M7JnPUU1o2etBc03 EJU4arq82o+xAfftxaMowmwT4Xb2hC6lslCi9INX4/u/R6zK5m5Bl5xUaFGznEdyD7wBi8eRmZ UpYwv86Oxn3+Jygq/4JIuvNJ41wbXZd9GI6cPpXf4yeeqQ==; 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-Type:MIME-Version:References: Message-ID:In-Reply-To:Date:Reply-To:Subject:To:From:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FGSYAXwpa6ra2lVs0Ul3dRBQWTik0c1E0X/Ysesp/1w=; b=AIOz0HGLYqcVOgGmxNPKdzg7oi Kb5C38kVIsM+GEmQSnCURQp9jr9UuMOfVSCWPnyJ8lysOUWxab/oXzxuYXrY4f5zpiH1Ld9Xj/kZr twmZicF3f12r88SNVtT078vWgkmjIa3AQqoMjR5XnMe0vFHH8YqwNJzunsOzVP68z0OuO9TvMOUaP ICJcwZOojCs3Qxi6bNm7EY/WTKoBF0Y5dWaZfoB0X4DJRKcf4TtEjy8lMSXFL9a8MddwLi6eiMfuA n/I4LYysUXMXywCzH+xdsrOUpgR55mfikcI70KHqq7ZH3RzOC5EGolagKLsFOmNvDkT/NGn6q0HXj PwRyWjHA==; Received: from authenticated user by zero.zsh.org with local id 1lTmvc-000149-4G; Tue, 06 Apr 2021 14:43:40 +0000 Authentication-Results: zsh.org; iprev=pass (so254-31.mailgun.net) smtp.remote-ip=198.61.254.31; dkim=pass header.d=klanderman.net header.s=mg header.a=rsa-sha256; dmarc=none header.from=klanderman.net; arc=none Received: from so254-31.mailgun.net ([198.61.254.31]:51616) by zero.zsh.org with utf8esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lTmuU-0000Ri-GY; Tue, 06 Apr 2021 14:42:35 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=klanderman.net; q=dns/txt; s=mg; t=1617720154; h=Content-Type: MIME-Version: References: Message-ID: In-Reply-To: Date: Reply-To: Subject: To: From: Sender; bh=FGSYAXwpa6ra2lVs0Ul3dRBQWTik0c1E0X/Ysesp/1w=; b=Pgp9MHFkEvTgAOMHXE1uIIpwJDoZBeJ7a3VMsZGpOYTU+0qcgCapem05RbgwB04g9iNve1Lt 4qerEJJ2sMOzu2CdVfUYRzHzSBQzvyZJkctMgyzcOCVKhDXDzOFGRvn1559hd6oRIliwCVeB aX/zQ30VZ3or7cPEQM/cYiIm5YU= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyIzOGFmNSIsICJ6c2gtdXNlcnNAenNoLm9yZyIsICI5N2RiZDgiXQ== Received: from smtp2.klanderman.net (smtp2.klanderman.net [142.93.10.110]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 606c734874f773a6645b00e1 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Tue, 06 Apr 2021 14:42:16 GMT Received: from lwm.klanderman.net (pool-72-93-77-73.bstnma.fios.verizon.net [72.93.77.73]) by smtp2.klanderman.net (Postfix) with ESMTPSA id DCB52414E1; Tue, 6 Apr 2021 10:42:15 -0400 (EDT) Received: by lwm.klanderman.net (Postfix, from userid 1000) id 9CC8629E2FEE; Tue, 6 Apr 2021 10:42:15 -0400 (EDT) From: Greg Klanderman To: zsh-users@zsh.org Subject: Re: alias with a parameter Reply-To: Greg Klanderman Date: Tue, 06 Apr 2021 10:42:15 -0400 In-Reply-To: <20210405214020.90c1721ab4b6493b40c6a9df@gmx.com> (Duke Normandin's message of "Mon, 5 Apr 2021 21:40:20 -0600") Message-ID: <878s5vsce0.fsf@lwm.klanderman.net> User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.24 (linux) References: <74C37597-A161-4A4C-8DBD-3CF0B40BBDAE@covisp.net> <20210405214020.90c1721ab4b6493b40c6a9df@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Seq: 26629 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 April 5, 2021 Duke Normandin wrote: >> On 05 Apr 2021, at 16:55, dukeofpurl@gmx.com wrote: >> > em() { emacs $1 -geometry "56x23" } > No error! It simply won't load the filename I pass to the zsh function. works for me. maybe 'emacs' is aliased or otherwise overriden? % whence -va emacs add 'echo' before 'emacs' and see what it prints? what if you directly run % emacs ./hello.c -geometry "56x23" does it load hello.c then? I thought maybe emacs might not like the -geometry argument after the filename, but it works for me. Maybe a problem with your .emacs? Try adding '-q' to the emacs invocation to test that hypotheses, however, then you'd see the same problem running emacs directly above. btw, you might consider: em() { emacs -geometry "56x23" "$@" } which lets you pass any number of files (including none) Greg