zsh-users
 help / color / mirror / code / Atom feed
* Creating A Clean Environment For Autoloaded Functions
@ 2012-12-30  9:44 Russell Harmon
  2012-12-30 19:20 ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Russell Harmon @ 2012-12-30  9:44 UTC (permalink / raw)
  To: zsh-users

If I want to write a function which can be autoloaded, how can I
prevent functions defined outside of my function from being accessible
from within my function? For example, I have a function ls { gls "$@"
}, and I know of no way to prevent that function from leaking into the
definition of all the functions I've autoloaded which use ls.

Additionally, is it possible to zmodload a module which is
automatically unloaded from the environment after my function
completes _only if_ that module was not already loaded?
--
Russell Harmon


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

end of thread, other threads:[~2013-01-03 22:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-30  9:44 Creating A Clean Environment For Autoloaded Functions Russell Harmon
2012-12-30 19:20 ` Bart Schaefer
2012-12-30 21:02   ` Russell Harmon
2012-12-30 22:12     ` Bart Schaefer
2012-12-31 23:30   ` Han Pingtian
2013-01-02  5:15     ` PATCH and more remarks on parameter expansion docs Bart Schaefer
2013-01-02  8:32       ` Han Pingtian
2013-01-02 16:46         ` Bart Schaefer
2013-01-02 23:28           ` Han Pingtian
2013-01-03 19:42             ` Bart Schaefer
2013-01-03 22:18               ` Han Pingtian

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).