Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Ray Sutton Newsgroups: gnu.bash.bug Subject: declare -g reports as invalid option on MacOS (10.14.6) Bash (5.0.11) Date: Fri, 30 Aug 2019 18:03:37 -0600 Lines: 28 Approved: bug-bash@gnu.org Message-ID: References: <14820bd504a5fa7745aa83f4db7d5829e880675f.camel@sutton-family.net> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1567214006 938 209.51.188.17 (31 Aug 2019 01:13:26 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Evolution 3.32.1-2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 91.220.196.211 X-Mailman-Approved-At: Fri, 30 Aug 2019 21:13:23 -0400 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <14820bd504a5fa7745aa83f4db7d5829e880675f.camel@sutton-family.net> Xref: csiph.com gnu.bash.bug:15335 Firstly apologies for not using bashbug, I'm having an issue on a machine I'm rebuilding and don't have email readily available yet The issue is on a late 2013 MBP running MacOS 10.14.6 and bash -version reports 5.0.11(1)-release (x86-64-apple-darwin18.6.0) The error is occuring in my .bash_profile and reports as -bash: declare: -g: invalid option declare usage: declare [-afFirtx] [-p] [name[=value]...] Which does not agree with the man page. My work MBP (mid 2014) is running exactly the same version of both MacOS and bash, the problem doesn't occur there In both cases bash was installed via brew. The behavior seems consistent with the original bash 3 declare statement persisting after the bash 5 install which seems unlikely. Any Advice on how to fix this issue? Thanks Ray Sutton