Re: contrib/completion/git-completion.bash: declare -g is not portable
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Feb 4, 2018, 09:57 UTC
- Message-ID
- <CAPig+cQXT1ov4MjzSzqiLBzr4wN1XcP7aSxMP+_dhtWtYwhDAA@mail.gmail.com>
- In-Reply-To
- <CACsJy8BKpniRxzDa8tOzEu=UVB0kMgv-n0tqZgp0Jreruqq-mg@mail.gmail.com>
On Sun, Feb 4, 2018 at 4:45 AM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 7 quoted lines
> On Sun, Feb 4, 2018 at 12:20 AM, Torsten Bögershausen <tboegi@web.de> wrote: >> After running t9902-completion.sh on Mac OS I got a failure >> in this style: > > Sorry I was new with this bash thingy. Jeff already answered this (and > I will fix it in the re-roll) but just for my own information, what > bash version is shipped with Mac OS?
The MacOS bash is very old; note the copyright date:
% /bin/bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
Copyright (C) 2007 Free Software Foundation, Inc.A recent bash installed manually (not from Apple):
% /usr/local/bin/bash --version
GNU bash, version 4.4.18(1)-release (x86_64-apple-darwin16.7.0)
Copyright (C) 2016 Free Software Foundation, Inc.