Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Scope of local parameters
- X-seq: zsh-users 6072
- From: Borzenkov Andrey <Andrey.Borzenkov@xxxxxxxxxxx>
- To: "'Haakon Riiser'" <haakon.riiser@xxxxxxxxxx>
- Subject: RE: Scope of local parameters
- Date: Mon, 5 May 2003 12:06:21 +0400
- Cc: zsh-users@xxxxxxxxxx
- Importance: Normal
- In-reply-to: <20030505065754.GA718@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Actually I am not sure why I assumed source supports local parameters in any
form. Probably I was distracted by the fact that $* _is_ made local.
Hmm ... making typeset create local parameters in sourced script by default
will definitely break a lot of existing scripts. Probably extra argument to
typeset or (better) extra options to treat typesets in script as local. Hmm
the same options could make function definitions local as well ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author