Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: nested arithmetic expansion
- X-seq: zsh-users 12105
- From: "Seth Kurtzberg" <seth@xxxxxxx>
- To: <zsh-users@xxxxxxxxxx>
- Subject: RE: nested arithmetic expansion
- Date: Thu, 25 Oct 2007 00:22:01 -0400
- In-reply-to: <20071025035807.33344.qmail@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071025035807.33344.qmail@xxxxxxxxxxx>
- Thread-index: AcgWvww99O5hpoOGQ8+y/oLLh0yVDwAAIXmw
My understanding is that the $() form is fully recursive, while the other is
in general not.
-----Original Message-----
From: Atom Smasher [mailto:atom@xxxxxxxxxxx]
Sent: Wednesday, October 24, 2007 11:58 PM
To: zsh-users@xxxxxxxxxx
Subject: nested arithmetic expansion
how come $[...] doesn't work when nested in a parameter, but the other
(older?) form $((...)) does?
% print ${$((2+3))}
5
% print ${$[2+3]}
<nothing>
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"So what do we do if we get bitten by something deadly, then?"
He blinked at me as if I was stupid.
"Well what do you think you do?" he said. "You die of course.
That's what deadly means."
-- Douglas Adams, Last Chance To See
Messages sorted by:
Reverse Date,
Date,
Thread,
Author