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

Minor bug(s) with NO_MULTI_FUNC_DEF



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