Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: creating user defined special parameters?
- X-seq: zsh-users 15710
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: creating user defined special parameters?
- Date: Tue, 11 Jan 2011 08:27:30 -0800
- In-reply-to: <1101112125580.1967@smasher>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1101090127100.1967@smasher> <110108115519.ZM1895@torch.brasslantern.com> <1101112125580.1967@smasher>
On Jan 11, 9:36pm, Atom Smasher wrote:
}
} it's not my desire to emulate ksh's discipline functions or compound
} variables, i just want a way to define a "simple" variable as a function.
Yes, I understand. I was explaining why a simple implementation has
not been pursued: because there's already an example of a more
thoughtfully designed feature that it would be preferable to emulate,
rather than have yet another case of several incompatible ways to
do the same thing.
Ksh discipline functions solve several problems, not the least of
which is the question of how, inside the discipline function, to
refer to the variable associated with the function without causing
either namespace collisions or an infinite recursion. The compound
variable syntax is central to that solution.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author