Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15347 > unrolled thread
| Started by | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| First post | 2019-09-03 09:03 -0400 |
| Last post | 2019-09-03 09:03 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: declare -g reports as invalid option on MacOS (10.14.6) Bash (5.0.11) Greg Wooledge <wooledg@eeg.ccf.org> - 2019-09-03 09:03 -0400
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2019-09-03 09:03 -0400 |
| Subject | Re: declare -g reports as invalid option on MacOS (10.14.6) Bash (5.0.11) |
| Message-ID | <mailman.335.1567515832.2075.bug-bash@gnu.org> |
On Fri, Aug 30, 2019 at 06:03:37PM -0600, Ray Sutton wrote: > 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 You probably have multiple versions of bash installed. One of them, which you invoked by typing "bash -version" from a command shell, is version 5.0.11. The other, which is your login shell as used by your terminal emulator, is very likely bash 3.2. > The behavior seems consistent with the original bash 3 declare > statement persisting after the bash 5 install which seems unlikely. Yup. Your login shell is still pointing to the original bash, not the other bash.
Back to top | Article view | gnu.bash.bug
csiph-web