From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: _call_program
Date: Wed, 15 Jan 2003 17:37:00 +0100 [thread overview]
Message-ID: <3443.1042648620@finches.logica.co.uk> (raw)
An undocumented feature of _call_program is, quoting Sven from 9897, that
"If the value of the style starts with a hyphen, it is only prepended
to the strings given as arguments."
I've never used this feature before but it doesn't quite do what I want
now. It prepends the strings so the command ends up as an argument to
your replacement command. I wanted to use the style to add extra
options to the command. I can't think of any situation where you might
want this command passed. So does anyone use this feature as it is and
does anyone mind if I apply the patch below?
Oliver
--- Completion/Base/Utility/_call_program Mon Apr 2 13:13:47 2001
+++ Completion/Base/Utility/_call_program Wed Jan 15 17:15:01 2003
@@ -4,7 +4,7 @@
if zstyle -s ":completion:${curcontext}:${1}" command tmp; then
if [[ "$tmp" = -* ]]; then
- eval "$tmp[2,-1]" "$argv[2,-1]"
+ eval "$tmp[2,-1]" "$argv[3,-1]"
else
eval "$tmp"
fi
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
reply other threads:[~2003-01-15 17:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3443.1042648620@finches.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.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).