zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Could someone clarify how math functions work?
Date: Thu, 18 Dec 2014 22:05:56 -0800	[thread overview]
Message-ID: <141218220556.ZM28901@torch.brasslantern.com> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2014-12-19  6:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-19  3:45 Eric Cook
2014-12-19  5:16 ` Kurtis Rader
2014-12-19  5:34 ` Bart Schaefer
2014-12-19  5:48   ` Kurtis Rader
2014-12-19  5:51     ` Kurtis Rader
2014-12-19  6:05     ` Bart Schaefer [this message]
2014-12-19 11:15   ` Eric Cook
2014-12-19  9:35 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=141218220556.ZM28901@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).