From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6962 invoked from network); 20 Jan 2003 14:35:20 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 20 Jan 2003 14:35:20 -0000 Received: (qmail 9094 invoked by alias); 20 Jan 2003 14:34:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5771 Received: (qmail 9087 invoked from network); 20 Jan 2003 14:34:38 -0000 X-MessageWall-Score: 0 (sunsite.dk) Message-ID: <20030120143439.3472.qmail@web12305.mail.yahoo.com> Date: Mon, 20 Jan 2003 09:34:39 -0500 (EST) From: Le Wang Subject: RE: passing arrays To: Zsh users list In-Reply-To: <20030120142335.581.qmail@web12308.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Borzenkov Andrey wrote: > > > Here is an extension of the problem. Say I have a > > bunch of functions that operate on $PATH, how > would I > > generalize it so that it works with any $PATH like > > variable? > > > > Hmm ... have you noticed that every your question > needs at least one reply > that requests clarification what you really mean? No > offence intended :) None taken. I will strive to refine my problem descriptions. My problem is as follows: I currently have: addToPath () {...} and I use it as: addToPath ~/bin/scripts I would like to have addToPathVar () {...} and use it as: addToPathVar CLASSPATH ~/java/lib -- Le ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca