Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Bug in "zed" with autoloaded functions
- X-seq: zsh-workers 20242
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: Bug in "zed" with autoloaded functions
- Date: Sun, 8 Aug 2004 09:08:07 -0700 (PDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: zsh-workers@xxxxxxxxxx
This used to work:
autoload foo
zed -f foo
It doesn't any more. The bug was introduced in zsh-workers/20089.
Index: Functions/Misc/zed
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/zed,v
retrieving revision 1.8
diff -u -r1.8 zed
--- Functions/Misc/zed 23 Jun 2004 16:14:27 -0000 1.8
+++ Functions/Misc/zed 8 Aug 2004 16:06:44 -0000
@@ -75,6 +75,7 @@
# If function is undefined but autoloadable, load it
if [[ $var = *\#\ undefined* ]] then
autoload +X $1
+ var="$(functions $1)"
elif [[ -z $var ]] then
var="$1() {
}"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author