Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Could someone clarify how math functions work?
- X-seq: zsh-users 19598
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Could someone clarify how math functions work?
- Date: Thu, 18 Dec 2014 22:05:56 -0800
- In-reply-to: <CABx2=D90SO9+hA0O9EK-exz60V2vQAxZGbhNZK-_0H=p_6igyA@mail.gmail.com>
- 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: <54939F50.50102@gmx.com> <141218213450.ZM28822@torch.brasslantern.com> <CABx2=D90SO9+hA0O9EK-exz60V2vQAxZGbhNZK-_0H=p_6igyA@mail.gmail.com>
On Dec 18, 9:48pm, Kurtis Rader wrote:
}
} Your second example is identical to the first so you apparently did what I
} often do: forgot to make a copy of the desired text. That is, your second
} example should be
}
} zsh -c 'add() { for arg; do (( n += arg )); done; print n: $n }; functions
} -M add; print results: $(( add(3,1,2) ))'
That IS what my second example is; look again at the text you excerpted
(not copied again here). By the way, though I personally don't care
much any more after too many years of arguing, we try to discourage
"top posting" on these lists.
} I would argue that your explanation, while correct, illustrates my point.
No disagreement, but what is the point of making that point, again?
Jut to tell Eric to go program in something else?
--
Barton E. Schaefer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author