From: "Márcio Almada" <marcio.web2@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] fix global bash variable leak on __gitcompappend
Date: Wed, 8 Apr 2015 02:45:58 -0300 [thread overview]
Message-ID: <1428471958-12339-2-git-send-email-marcio3w@gmail.com> (raw)
In-Reply-To: <1428471958-12339-1-git-send-email-marcio3w@gmail.com>
---
contrib/completion/git-completion.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 661a829..1620546 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -186,7 +186,7 @@ fi
__gitcompappend ()
{
- local i=${#COMPREPLY[@]}
+ local x i=${#COMPREPLY[@]}
for x in $1; do
if [[ "$x" == "$3"* ]]; then
COMPREPLY[i++]="$2$x$4"
--
1.9.3
next prev parent reply other threads:[~2015-04-08 5:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 5:45 [PATCH] fix global bash variable on __gitcompappend Márcio Almada
2015-04-08 5:45 ` Márcio Almada [this message]
2015-04-09 3:56 ` [PATCH] fix global bash variable leak " Junio C Hamano
2015-04-09 8:55 ` SZEDER Gábor
2015-04-09 13:52 ` Marcio Almada
2015-04-09 19:26 ` Eric Sunshine
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=1428471958-12339-2-git-send-email-marcio3w@gmail.com \
--to=marcio.web2@gmail.com \
--cc=git@vger.kernel.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.
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).