git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* contrib/completion/git-completion.bash: declare -g is not portable
@ 2018-02-03 17:20 Torsten Bögershausen
  2018-02-03 19:51 ` Andreas Schwab
  2018-02-04  9:45 ` Duy Nguyen
  0 siblings, 2 replies; 6+ messages in thread
From: Torsten Bögershausen @ 2018-02-03 17:20 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy, Git Mailing List

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>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-04 11:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-03 17:20 contrib/completion/git-completion.bash: declare -g is not portable Torsten Bögershausen
2018-02-03 19:51 ` 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

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).