Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: saved from prince of eval
- X-seq: zsh-users 20942
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: saved from prince of eval
- Date: Mon, 9 Nov 2015 10:41:28 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=I6rpZAyePOqQNubgc7wMmWROQXsqVrMkOnej0wJ/Qjw=; b=1K6aVCPLdWxLO5KanBl3fwbNp4dcoeGi5pQvxiAYIxch+hI/k5aykwI2I0cNbf7A44 GQR0n0fdhr+gPX3CoI0adTyeZokh9DezRhOzN0ASCgI1xw9tH7GQW0QxGKzXm4ab1NBT 3XCCM4SuPlpNjjktUz3AZLR4vsaAV2yeMkQvEozCGDVUwwhWoXu2q3vKvEDX+NaTtDnU qA4K60L1DGf6fe72hQU+gFblID/8XM6SQGdkS/XR26q6unBI1B6y8yGP+vxhm7NE3ZqH LdBstUBDuQCVjHtj/IJrE+hTURM7uJTgc2Q37yFGEnNpNA6YUFKihEhvOz/CzjLQOazM Lg+w==
- In-reply-to: <56405E3C.1080609@eastlink.ca>
- 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: <563F8168.5080006@eastlink.ca> <151108115752.ZM859@torch.brasslantern.com> <563FC6D6.90104@eastlink.ca> <56405E3C.1080609@eastlink.ca>
On Nov 9, 12:50am, Ray Andrews wrote:
}
} foo="\$${IN[list]}[${IN[topE]}, ${IN[bottomE]}]"
} IN[PAGE]="${(e)foo}"
${IN[list]} must name a normal array (because you can't do ranges of an
associative array), so I don't think you need (e), you just need (P):
IN[PAGE]=${${(P)IN[list]}[IN[topE],IN[bottomE]]}
Because of math context in the enclosing [subscript]ing you don't need
the ${ } on IN[topE] etc.
The only time you'd want (e) is if you had something like
IN[list]=array
array=( '$x' '$y' )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author