Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zparseopts inside functions
- X-seq: zsh-users 11143
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: zparseopts inside functions
- Date: Fri, 26 Jan 2007 16:55:03 +0100 (CET)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author