From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19233 invoked from network); 26 Jan 2007 17:20:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Jan 2007 17:20:42 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 45432 invoked from network); 26 Jan 2007 17:20:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Jan 2007 17:20:33 -0000 Received: (qmail 1391 invoked by alias); 26 Jan 2007 17:20:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11145 Received: (qmail 1381 invoked from network); 26 Jan 2007 17:20:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Jan 2007 17:20:25 -0000 Received: (qmail 44309 invoked from network); 26 Jan 2007 17:20:25 -0000 Received: from p54853993.dip0.t-ipconnect.de (HELO localhost) (84.133.57.147) by a.mx.sunsite.dk with SMTP; 26 Jan 2007 17:20:20 -0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.62) (envelope-from ) id 1HAUdt-0005xC-42; Fri, 26 Jan 2007 18:13:37 +0100 Date: Fri, 26 Jan 2007 18:13:36 +0100 (CET) Message-Id: <20070126.181336.41642498.Meino.Cramer@gmx.de> To: michael@cadilhac.name Cc: zsh-users@sunsite.dk Subject: Re: zparseopts inside functions From: Meino Christian Cramer In-Reply-To: <87y7npn4xz.fsf@lrde.org> References: <20070126.165503.74742074.Meino.Cramer@gmx.de> <87y7npn4xz.fsf@lrde.org> X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: michael@cadilhac.name (Micha=EBl Cadilhac) Subject: Re: zparseopts inside functions Date: Fri, 26 Jan 2007 17:11:36 +0100 Hi Michael, thanks for your reply! Yes, it works! :) ...but I thought, $ARGV and friends would be global...... Have a nice weekend! mcc > Meino Christian Cramer writes: > = > > #! /bin/zsh > > > > function takeargs > > { = > > zparseopts s:=3Dsvar t:=3Dtvar u:=3Duvar > > echo $svar > > echo $tvar > > echo $uvar > > } > > > > takeargs > > > > nothing works anymore (the echo put only "\n"'s on my screen...). > > > > I am sure I missed a very basic simple thing...but unfortunately I= > > seem to be "blinded by the screen"... > = > Maybe... some arguments to takeargs ? :-) Try with > takeargs "$@" > I think. > = > -- = > | Micha=EBl `Micha' Cadilhac | In a World without Walls an= d Fences, | > | Epita/LRDE Promo 2007 | who needs Windows and Gate= s? | > | http://michael.cadilhac.name | -- Dino Esposito = | > `--JID: michael.cadilhac@gmail.com--' = - --'