Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Nested function definition question
- X-seq: zsh-users 24068
- From: Nick Cross <zsh@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Nested function definition question
- Date: Tue, 16 Jul 2019 09:43:46 +0100
- Authentication-results: arandomserver.com; auth=pass (login) smtp.auth=relay@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=goots.org; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:To:Subject:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HHsTT/eFaSccLgn+RIr3kgu61kOxYMRguPSJ9F2JOeU=; b=B9oClHd/7UTUD5hxdRBpR4Mso1 6VA1iUhCgDgXzORoFwFSB8dyAWSHPeEKyLvgTMWnRvLm4QScDycJNFCcrSqaSxiWsqjMaEpBzpJvi h4rC61COkOKbSIHeUOpwjjj/3cJ7m1g1uQHc0biSG68iE052/9u+RqEsyumoXkJupT8Ap0OAEYNB8 RdeokVxZJI1nijgqm9hkd5NsmZCIY/soeAqbqCYsVRxYuSa9Lo704PfKwtIYYlj6SjegzeqV7lq3a OVdKUmR8rPQZwdROGpWolY+7R9c9duiJPa2x04sxYDVXdQKPqh3Ykor0vBiAjGEryraoCM7/PVpqx xJoXYJ/w==;
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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