From: Nick Cross <zsh@goots.org>
To: zsh-users@zsh.org
Subject: Nested function definition question
Date: Tue, 16 Jul 2019 09:43:46 +0100 [thread overview]
Message-ID: <95595e97-d131-ca4b-ead8-6c0a371ecb05@goots.org> (raw)
Hi,
If I have some functions e.g.
common() {
BAR=1
}
foo() {
common
....
}
Is there a way of 'inlining' the definition of common in foo so that I
don't have to call it each time? ( but the source can still be separated
out for maintenance purposes )
Thanks
Nick
next reply other threads:[~2019-07-16 8:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 8:43 Nick Cross [this message]
2019-07-16 14:13 ` Ray Andrews
2019-07-16 14:44 ` Nick Cross
2019-07-17 5:49 ` Roman Perepelitsa
2019-07-17 9:34 ` Nick Cross
2019-07-17 9:54 ` Roman Perepelitsa
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=95595e97-d131-ca4b-ead8-6c0a371ecb05@goots.org \
--to=zsh@goots.org \
--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).