From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: [PATCH v2] Add -- to the `functions' builtin calls
Date: Tue, 27 Oct 2015 13:54:17 -0400 [thread overview]
Message-ID: <1445968457-5930-1-git-send-email-llua@gmx.com> (raw)
In-Reply-To: <1445962968-3603-1-git-send-email-llua@gmx.com>
Add -- to autoload too, just in case.
---
Functions/Misc/zed | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index 010b69b..1f6042e 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
next prev parent reply other threads:[~2015-10-27 17:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 16:22 [PATCH] " Eric Cook
2015-10-27 17:54 ` Eric Cook [this message]
2015-10-28 2:54 ` [PATCH] zed: fix argument parsing Eric Cook
2015-10-31 18:08 ` Eric Cook
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=1445968457-5930-1-git-send-email-llua@gmx.com \
--to=llua@gmx.com \
--cc=zsh-workers@zsh.org \
/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).