From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: autoload +X[zk]
Date: Mon, 27 Mar 2000 16:48:51 +0000 [thread overview]
Message-ID: <1000327164851.ZM16620@candle.brasslantern.com> (raw)
In-Reply-To: <200003271049.MAA04375@beta.informatik.hu-berlin.de>
On Mar 27, 12:49pm, Sven Wischnowsky wrote:
} Subject: autoload +X[zk]
}
} Note: intentionally no PATCH in the subject, I think I let others
} decide if we should use this patch, or change it before using it.
I think we should apply it and then fix a couple of things.
} I'm not sure about this because it also changes ksh-style autoloading
} with `autoload +X' (independent if it's done because of giving the new
} -k flag or because KSH_AUTOLOAD is set) to execute the file loaded to
} get at the function definition. And `autoload +X' has been around for
} some time...
Here's what I'd *like* for it to do, and you tell me how hard it is ...
I'd like autoload +X on a ksh-autoloaded function `foo' to behave "as if"
the user had executed
f=($^fpath/foo(|)(N))
eval "function foo { ${$(< $f[1])};"' foo "$@" }'
Otherwise I think this patch is just fine.
} The good thing is that it integrates execautofn() and loadautofn().
Thank you.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~2000-03-27 16:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-27 10:49 Sven Wischnowsky
2000-03-27 16:48 ` Bart Schaefer [this message]
2000-03-27 11:27 Sven Wischnowsky
2000-03-28 11:40 Sven Wischnowsky
2000-03-28 11:52 Sven Wischnowsky
2000-03-28 14:10 ` Sven Wischnowsky
2000-03-28 18:27 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1000327164851.ZM16620@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).