zsh-users
 help / color / mirror / code / Atom feed
* zparseopts inside functions
@ 2007-01-26 15:55 Meino Christian Cramer
  2007-01-26 16:11 ` Peter Stephenson
       [not found] ` <87y7npn4xz.fsf@lrde.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Meino Christian Cramer @ 2007-01-26 15:55 UTC (permalink / raw)
  To: zsh-users

 Hi,

  I wrote a little testscript:

    #! /bin/zsh
    
    zparseopts s:=svar t:=tvar u:=uvar
    echo $svar
    echo $tvar
    echo $uvar

 which works nice.

 But if I write this instead:

    #! /bin/zsh
    
    function takeargs
    {   
        zparseopts s:=svar t:=tvar u:=uvar
        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"...

 Thank you very much in advace!
 Have a nice weekend!
 mcc



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-26 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-26 15:55 zparseopts inside functions Meino Christian Cramer
2007-01-26 16:11 ` Peter Stephenson
     [not found] ` <87y7npn4xz.fsf@lrde.org>
2007-01-26 17:13   ` Meino Christian Cramer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).