zsh-workers
 help / color / mirror / code / Atom feed
* Minor bug(s) with NO_MULTI_FUNC_DEF
@ 2022-05-30 20:31 Bart Schaefer
  2022-05-31  9:03 ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Bart Schaefer @ 2022-05-30 20:31 UTC (permalink / raw)
  To: Zsh hackers list

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.


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

end of thread, other threads:[~2022-06-06 15:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 20:31 Minor bug(s) with NO_MULTI_FUNC_DEF Bart Schaefer
2022-05-31  9:03 ` Peter Stephenson
2022-05-31 17:07   ` Bart Schaefer
2022-05-31 17:14     ` Bart Schaefer
2022-06-06  8:45       ` Peter Stephenson
2022-06-06 15:53         ` Peter Stephenson
2022-06-02 10:23   ` Daniel Shahaf
2022-06-02 15:23     ` Bart Schaefer

Code repositories for project(s) associated with this 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).