From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22263 invoked from network); 26 Feb 2003 18:39:08 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Feb 2003 18:39:08 -0000 Received: (qmail 26456 invoked by alias); 26 Feb 2003 18:38:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5946 Received: (qmail 26441 invoked from network); 26 Feb 2003 18:38:20 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 26 Feb 2003 18:38:20 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [158.130.12.194] by sunsite.dk (MessageWall 1.0.8) with SMTP; 26 Feb 2003 18:38:19 -0000 Received: from red.seas.upenn.edu (RED.SEAS.UPENN.EDU [158.130.64.176]) by lion.seas.upenn.edu (8.12.3/8.12.3) with ESMTP id h1QIcIj8018649 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 26 Feb 2003 13:38:18 -0500 Received: from red.seas.upenn.edu (localhost [127.0.0.1]) by red.seas.upenn.edu (8.12.5/8.12.5) with ESMTP id h1QIcHGJ016089 for ; Wed, 26 Feb 2003 13:38:17 -0500 (EST) Received: (from juhas@localhost) by red.seas.upenn.edu (8.12.5/8.12.5/Submit) id h1QIcHU2016086 for zsh-users@sunsite.dk; Wed, 26 Feb 2003 13:38:17 -0500 (EST) Date: Wed, 26 Feb 2003 13:38:17 -0500 From: Pavol Juhas To: Zsh users list Subject: Re: Lukasz Stelmach: question about functions in zsh Message-ID: <20030226183817.GA13515@seas.upenn.edu> Mail-Followup-To: Zsh users list References: <20030225230442.CD1561B76B@pwstephenson.fsnet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030225230442.CD1561B76B@pwstephenson.fsnet.co.uk> User-Agent: Mutt/1.4i On Tue, Feb 25, 2003 at 11:04:37PM +0000, Peter Stephenson wrote: > > ------- Forwarded Message > > Date: Tue, 18 Feb 2003 15:24:34 +0100 > From: Lukasz Stelmach > Subject: question about functions in zsh > > Is there any way in zsh to make a function declared with "function > name() {..." syntax a global one? That is exported to environment > of child processes of zsh which means also other instances of zsh. > I would like to define a function in /etc/zlogin or zprofile (a *login* > scrpit) and not in zshrc and make it defined for all subprocesses. You can define your function in /etc/zshenv, then it should be available to all zsh processes. Pavol