Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Minor bug(s) with NO_MULTI_FUNC_DEF
- X-seq: zsh-workers 50311
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Minor bug(s) with NO_MULTI_FUNC_DEF
- Date: Mon, 30 May 2022 13:31:13 -0700
- Archived-at: <https://zsh.org/workers/50311>
- List-id: <zsh-workers.zsh.org>
Even with that option set, "functions" outputs multifuncdef syntax.
% setopt nomultifuncdef
% foo() {
function foo1 foo2 foo3 { echo $0 }
function> }
% functions foo
foo () {
foo1 foo2 foo3 () {
echo $0
}
}
As an aside, something like this:
TRAP{HUP,INT,QUIT,TERM} () { print -u2 Got $1 }
bypasses the nomultifuncdef syntax check and successfully defines all
four functions.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author