From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19143 invoked from network); 20 Oct 2005 11:53:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Oct 2005 11:53:03 -0000 Received: (qmail 31623 invoked from network); 20 Oct 2005 11:52:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Oct 2005 11:52:57 -0000 Received: (qmail 26130 invoked by alias); 20 Oct 2005 10:06:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9532 Received: (qmail 26120 invoked from network); 20 Oct 2005 10:06:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Oct 2005 10:06:07 -0000 Received: (qmail 91221 invoked from network); 20 Oct 2005 10:06:04 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 20 Oct 2005 10:06:02 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ESWqM-0003t3-31 for zsh-users@sunsite.dk; Thu, 20 Oct 2005 11:36:14 +0200 Received: from 212.84.119.241 ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Oct 2005 11:36:14 +0200 Received: from david by 212.84.119.241 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Oct 2005 11:36:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: duplicating functions Date: Thu, 20 Oct 2005 10:35:13 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 212.84.119.241 X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_BY_IP, RCVD_NUMERIC_HELO autolearn=no version=3.0.4 Hi, I have a series of functions defined .zshenv function g0() { gmark $0 $* } function g1() { gmark $0 $* } function g2() { gmark $0 $* } function g3() { gmark $0 $* } function g4() { gmark $0 $* } function g5() { gmark $0 $* } function g6() { gmark $0 $* } function g7() { gmark $0 $* } function g8() { gmark $0 $* } function g9() { gmark $0 $* } Where gmark contains the code and $0 is used to determine which original function was called Is there are simpler way of doing this -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/