zsh-users
 help / color / mirror / code / Atom feed
* Nested function definition question
@ 2019-07-16  8:43 Nick Cross
  2019-07-16 14:13 ` Ray Andrews
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Cross @ 2019-07-16  8:43 UTC (permalink / raw)
  To: zsh-users


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-07-17  9:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16  8:43 Nested function definition question Nick Cross
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

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).