From: "Jérôme Pouiller" <jezz@sysmic.org>
To: zsh-workers@zsh.org
Subject: run-help and run-help-*
Date: Fri, 15 Oct 2010 18:05:55 +0200 [thread overview]
Message-ID: <201010151805.56279.jezz@sysmic.org> (raw)
[-- Attachment #1: Type: Text/Plain, Size: 328 bytes --]
Dear Zsh Workers
I noticed if:
1. I use run-help module
2. I use run-help-git functions (also work all run-help-* functions)
3. I launch "run-help git"
then run-help function loop with error:
run-help:shift:102: shift count must be <= $#
Patch in attachment fix this issue.
--
Jérôme Pouiller (Jezz)
[-- Attachment #2: run-help-fix.patch --]
[-- Type: text/x-patch, Size: 403 bytes --]
--- /usr/share/zsh/functions/Misc/run-help.orig 2010-04-19 04:26:23.000000000 +0200
+++ /usr/share/zsh/functions/Misc/run-help 2010-10-15 17:54:53.249384368 +0200
@@ -97,7 +97,7 @@
builtin print -z "$cmd_args"
cmd_args=( ${(z)cmd_args} )
# Discard environment assignments, etc.
- while [[ $cmd_args[1] != $1 ]]
+ while [[ $cmd_args[1] != $1 && $# -gt 1 ]]
do
shift cmd_args
done
next reply other threads:[~2010-10-15 16:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 16:05 Jérôme Pouiller [this message]
2010-10-17 23:37 ` 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=201010151805.56279.jezz@sysmic.org \
--to=jezz@sysmic.org \
--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).