Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Nested function definition question




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



Messages sorted by: Reverse Date, Date, Thread, Author