From: "Torsten Bögershausen" <tboegi@web.de>
To: Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: contrib/completion/git-completion.bash: declare -g is not portable
Date: Sat, 3 Feb 2018 18:20:18 +0100 [thread overview]
Message-ID: <1e618c0c-81ba-fa7e-8039-748bdfa5a6d9@web.de> (raw)
Hej Duy,
After running t9902-completion.sh on Mac OS I got a failure
in this style:
.../projects/git/git.pu/t/../contrib/completion/git-completion.bash: line 300:
declare: -g: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
--- expected 2018-02-03 17:10:18.000000000 +0000
+++ out 2018-02-03 17:10:18.000000000 +0000
@@ -1,15 +1,2 @@
---quiet
---detach
---track
---orphan=
---ours
---theirs
---merge
---conflict=
---patch
---ignore-skip-worktree-bits
---ignore-other-worktrees
---recurse-submodules
---progress
--no-track
--no-recurse-submodules
not ok 92 - double dash "git checkout"
What is "declare -g" good for ?
<https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-declare>
next reply other threads:[~2018-02-03 17:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-03 17:20 Torsten Bögershausen [this message]
2018-02-03 19:51 ` contrib/completion/git-completion.bash: declare -g is not portable Andreas Schwab
2018-02-03 20:22 ` Jeff King
2018-02-04 9:45 ` Duy Nguyen
2018-02-04 9:57 ` Eric Sunshine
2018-02-04 11:48 ` Lucas Werkmeister
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=1e618c0c-81ba-fa7e-8039-748bdfa5a6d9@web.de \
--to=tboegi@web.de \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
/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).