Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Add -- to the `functions' builtin calls
- X-seq: zsh-workers 36984
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Add -- to the `functions' builtin calls
- Date: Tue, 27 Oct 2015 12:22:48 -0400
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Reported on IRC:
% autoload zed; zed -f -- "-zgen-prezto-load"
zed:83: bad option: -g
-zgen-prezto-load() {
}
---
Functions/Misc/zed | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index 010b69b..6628b13 100644
--- a/Functions/Misc/zed
+++ b/Functions/Misc/zed
@@ -80,10 +80,10 @@ fi
setopt localoptions nobanghist
if ((fun)) then
- var="$(functions $expand $1)"
+ var="$(functions $expand -- $1)"
# If function is undefined but autoloadable, load it
if [[ $var = *\#\ undefined* ]] then
- var="$(autoload +X $1; functions $1)"
+ var="$(autoload +X $1; functions -- $1)"
elif [[ -z $var ]] then
var="$1() {
}"
--
2.6.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author