zsh-users
 help / color / mirror / code / Atom feed
* Load autoloadable function, but only in enclosing function scope
@ 2022-03-24 16:12 Zach Riggle
  2022-03-24 16:29 ` Mikael Magnusson
  0 siblings, 1 reply; 7+ messages in thread
From: Zach Riggle @ 2022-03-24 16:12 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

Is there a way to

myfunc() {
    autoload foo && foo
}

Such that foo and any other functions it declares are local-scope only?

*Zach Riggle*

[-- Attachment #2: Type: text/html, Size: 425 bytes --]

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

end of thread, other threads:[~2022-03-25  0:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 16:12 Load autoloadable function, but only in enclosing function scope Zach Riggle
2022-03-24 16:29 ` Mikael Magnusson
2022-03-24 17:05   ` Peter Stephenson
2022-03-24 17:51     ` Bart Schaefer
2022-03-24 18:34       ` Bart Schaefer
2022-03-24 19:52       ` Peter Stephenson
2022-03-25  0:27         ` Bart Schaefer

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