mac vscode bash: shopt: globstar: invalid shell option name [duplicate] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag?Bash 4 associative arrays: error “declare: -A: invalid option”How to get Bash version number in OS XHow to run a shell script on a Unix console or Mac terminal?Get current directory name (without full path) in a Bash scriptAutomatic exit from bash shell script on errorPropagate all arguments in a bash shell scriptCheck existence of input argument in a Bash shell scriptInstalled Java 7 on Mac OS X but Terminal is still using version 6(Mac) -bash: __git_ps1: command not foundpoint knitr to bash 4 on macVSCode change debug shell to bash on windowscant use sudo, apt ,npm, etc in my vscode terminal even though I have Ubuntu bash installed on Windows 10

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

WAN encapsulation

Is it true to say that an hosting provider's DNS server is what links the entire hosting environment to ICANN?

How do I determine if the rules for a long jump or high jump are applicable for Monks?

Stars Make Stars

What makes black pepper strong or mild?

List *all* the tuples!

How widely used is the term Treppenwitz? Is it something that most Germans know?

When to stop saving and start investing?

How does cp -a work

Is it possible to boil a liquid by just mixing many immiscible liquids together?

What are the pros and cons of Aerospike nosecones?

Is there a way in Ruby to make just any one out of many keyword arguments required?

What is the longest distance a 13th-level monk can jump while attacking on the same turn?

Does surprise arrest existing movement?

Right-skewed distribution with mean equals to mode?

What do you call a plan that's an alternative plan in case your initial plan fails?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

Should I discuss the type of campaign with my players?

Can a non-EU citizen traveling with me come with me through the EU passport line?

What LEGO pieces have "real-world" functionality?

How can whole tone melodies sound more interesting?

Should I use Javascript Classes or Apex Classes in Lightning Web Components?

Sorting numerically



mac vscode bash: shopt: globstar: invalid shell option name [duplicate]



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?Bash 4 associative arrays: error “declare: -A: invalid option”How to get Bash version number in OS XHow to run a shell script on a Unix console or Mac terminal?Get current directory name (without full path) in a Bash scriptAutomatic exit from bash shell script on errorPropagate all arguments in a bash shell scriptCheck existence of input argument in a Bash shell scriptInstalled Java 7 on Mac OS X but Terminal is still using version 6(Mac) -bash: __git_ps1: command not foundpoint knitr to bash 4 on macVSCode change debug shell to bash on windowscant use sudo, apt ,npm, etc in my vscode terminal even though I have Ubuntu bash installed on Windows 10



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0
















This question already has an answer here:



  • Bash 4 associative arrays: error “declare: -A: invalid option”

    10 answers



  • How to get Bash version number in OS X

    3 answers



Running vscode on Mac. I updated the Mac bash version and, as you can see the built-in vscode terminal shows the same version of bash as that of the Mac terminal. When I source my .bash_profile, I get the invalid shell option name error in the vscode terminal. What is causing this?



FWIW - the Terminal > Integrated > Shell: Osx is set to bin/bash, if that is not obvious. And, my SHELL variable is the same.



enter image description here










share|improve this question













marked as duplicate by Charles Duffy bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 8 at 16:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • bash --version tells you what version you'd start if you ran the command bash, not what version of bash you're running now.

    – Charles Duffy
    Mar 8 at 16:17






  • 1





    Run echo "$BASH_VERSION" instead.

    – Charles Duffy
    Mar 8 at 16:18






  • 1





    To be clear, globstar was added in bash 4.0, and MacOS /bin/bash is 3.2. Thus, the issue is clearly that you're running the Apple-provided instance of bash from /bin, not the newer one that's added to the PATH in your dotfiles after the older version is already started.

    – Charles Duffy
    Mar 8 at 16:18







  • 1





    (BTW, it's pertinent/important to describe how you installed a newer bash; it's configured a bit differently based on whether you use Nixpkgs, or MacPorts, or HomeBrew, or built your own by hand; btw, of those options, the list is in my suggested order of preference).

    – Charles Duffy
    Mar 8 at 16:22












  • changing the version in vscode preferences to point to /usr/local/bin/bash rather than /bin/bash did the trick. i did understand, btw, all about globstar being a 4.x thing, thus the reason i upgraded bash in the first place - likely via homebrew. I did that months ago.

    – Bill Turner
    Mar 8 at 22:35

















0
















This question already has an answer here:



  • Bash 4 associative arrays: error “declare: -A: invalid option”

    10 answers



  • How to get Bash version number in OS X

    3 answers



Running vscode on Mac. I updated the Mac bash version and, as you can see the built-in vscode terminal shows the same version of bash as that of the Mac terminal. When I source my .bash_profile, I get the invalid shell option name error in the vscode terminal. What is causing this?



FWIW - the Terminal > Integrated > Shell: Osx is set to bin/bash, if that is not obvious. And, my SHELL variable is the same.



enter image description here










share|improve this question













marked as duplicate by Charles Duffy bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 8 at 16:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • bash --version tells you what version you'd start if you ran the command bash, not what version of bash you're running now.

    – Charles Duffy
    Mar 8 at 16:17






  • 1





    Run echo "$BASH_VERSION" instead.

    – Charles Duffy
    Mar 8 at 16:18






  • 1





    To be clear, globstar was added in bash 4.0, and MacOS /bin/bash is 3.2. Thus, the issue is clearly that you're running the Apple-provided instance of bash from /bin, not the newer one that's added to the PATH in your dotfiles after the older version is already started.

    – Charles Duffy
    Mar 8 at 16:18







  • 1





    (BTW, it's pertinent/important to describe how you installed a newer bash; it's configured a bit differently based on whether you use Nixpkgs, or MacPorts, or HomeBrew, or built your own by hand; btw, of those options, the list is in my suggested order of preference).

    – Charles Duffy
    Mar 8 at 16:22












  • changing the version in vscode preferences to point to /usr/local/bin/bash rather than /bin/bash did the trick. i did understand, btw, all about globstar being a 4.x thing, thus the reason i upgraded bash in the first place - likely via homebrew. I did that months ago.

    – Bill Turner
    Mar 8 at 22:35













0












0








0









This question already has an answer here:



  • Bash 4 associative arrays: error “declare: -A: invalid option”

    10 answers



  • How to get Bash version number in OS X

    3 answers



Running vscode on Mac. I updated the Mac bash version and, as you can see the built-in vscode terminal shows the same version of bash as that of the Mac terminal. When I source my .bash_profile, I get the invalid shell option name error in the vscode terminal. What is causing this?



FWIW - the Terminal > Integrated > Shell: Osx is set to bin/bash, if that is not obvious. And, my SHELL variable is the same.



enter image description here










share|improve this question















This question already has an answer here:



  • Bash 4 associative arrays: error “declare: -A: invalid option”

    10 answers



  • How to get Bash version number in OS X

    3 answers



Running vscode on Mac. I updated the Mac bash version and, as you can see the built-in vscode terminal shows the same version of bash as that of the Mac terminal. When I source my .bash_profile, I get the invalid shell option name error in the vscode terminal. What is causing this?



FWIW - the Terminal > Integrated > Shell: Osx is set to bin/bash, if that is not obvious. And, my SHELL variable is the same.



enter image description here





This question already has an answer here:



  • Bash 4 associative arrays: error “declare: -A: invalid option”

    10 answers



  • How to get Bash version number in OS X

    3 answers







bash macos visual-studio-code shopt






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 8 at 16:13









Bill TurnerBill Turner

4001623




4001623




marked as duplicate by Charles Duffy bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 8 at 16:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Charles Duffy bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 8 at 16:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • bash --version tells you what version you'd start if you ran the command bash, not what version of bash you're running now.

    – Charles Duffy
    Mar 8 at 16:17






  • 1





    Run echo "$BASH_VERSION" instead.

    – Charles Duffy
    Mar 8 at 16:18






  • 1





    To be clear, globstar was added in bash 4.0, and MacOS /bin/bash is 3.2. Thus, the issue is clearly that you're running the Apple-provided instance of bash from /bin, not the newer one that's added to the PATH in your dotfiles after the older version is already started.

    – Charles Duffy
    Mar 8 at 16:18







  • 1





    (BTW, it's pertinent/important to describe how you installed a newer bash; it's configured a bit differently based on whether you use Nixpkgs, or MacPorts, or HomeBrew, or built your own by hand; btw, of those options, the list is in my suggested order of preference).

    – Charles Duffy
    Mar 8 at 16:22












  • changing the version in vscode preferences to point to /usr/local/bin/bash rather than /bin/bash did the trick. i did understand, btw, all about globstar being a 4.x thing, thus the reason i upgraded bash in the first place - likely via homebrew. I did that months ago.

    – Bill Turner
    Mar 8 at 22:35

















  • bash --version tells you what version you'd start if you ran the command bash, not what version of bash you're running now.

    – Charles Duffy
    Mar 8 at 16:17






  • 1





    Run echo "$BASH_VERSION" instead.

    – Charles Duffy
    Mar 8 at 16:18






  • 1





    To be clear, globstar was added in bash 4.0, and MacOS /bin/bash is 3.2. Thus, the issue is clearly that you're running the Apple-provided instance of bash from /bin, not the newer one that's added to the PATH in your dotfiles after the older version is already started.

    – Charles Duffy
    Mar 8 at 16:18







  • 1





    (BTW, it's pertinent/important to describe how you installed a newer bash; it's configured a bit differently based on whether you use Nixpkgs, or MacPorts, or HomeBrew, or built your own by hand; btw, of those options, the list is in my suggested order of preference).

    – Charles Duffy
    Mar 8 at 16:22












  • changing the version in vscode preferences to point to /usr/local/bin/bash rather than /bin/bash did the trick. i did understand, btw, all about globstar being a 4.x thing, thus the reason i upgraded bash in the first place - likely via homebrew. I did that months ago.

    – Bill Turner
    Mar 8 at 22:35
















bash --version tells you what version you'd start if you ran the command bash, not what version of bash you're running now.

– Charles Duffy
Mar 8 at 16:17





bash --version tells you what version you'd start if you ran the command bash, not what version of bash you're running now.

– Charles Duffy
Mar 8 at 16:17




1




1





Run echo "$BASH_VERSION" instead.

– Charles Duffy
Mar 8 at 16:18





Run echo "$BASH_VERSION" instead.

– Charles Duffy
Mar 8 at 16:18




1




1





To be clear, globstar was added in bash 4.0, and MacOS /bin/bash is 3.2. Thus, the issue is clearly that you're running the Apple-provided instance of bash from /bin, not the newer one that's added to the PATH in your dotfiles after the older version is already started.

– Charles Duffy
Mar 8 at 16:18






To be clear, globstar was added in bash 4.0, and MacOS /bin/bash is 3.2. Thus, the issue is clearly that you're running the Apple-provided instance of bash from /bin, not the newer one that's added to the PATH in your dotfiles after the older version is already started.

– Charles Duffy
Mar 8 at 16:18





1




1





(BTW, it's pertinent/important to describe how you installed a newer bash; it's configured a bit differently based on whether you use Nixpkgs, or MacPorts, or HomeBrew, or built your own by hand; btw, of those options, the list is in my suggested order of preference).

– Charles Duffy
Mar 8 at 16:22






(BTW, it's pertinent/important to describe how you installed a newer bash; it's configured a bit differently based on whether you use Nixpkgs, or MacPorts, or HomeBrew, or built your own by hand; btw, of those options, the list is in my suggested order of preference).

– Charles Duffy
Mar 8 at 16:22














changing the version in vscode preferences to point to /usr/local/bin/bash rather than /bin/bash did the trick. i did understand, btw, all about globstar being a 4.x thing, thus the reason i upgraded bash in the first place - likely via homebrew. I did that months ago.

– Bill Turner
Mar 8 at 22:35





changing the version in vscode preferences to point to /usr/local/bin/bash rather than /bin/bash did the trick. i did understand, btw, all about globstar being a 4.x thing, thus the reason i upgraded bash in the first place - likely via homebrew. I did that months ago.

– Bill Turner
Mar 8 at 22:35












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

Алба-Юлія

Захаров Федір Захарович