git-split-branch icon indicating copy to clipboard operation
git-split-branch copied to clipboard

declare: -A: invalid option

Open goetzk opened this issue 7 years ago • 2 comments

Hi,

This error appears to be non fatal and I'm guessing is due to the version of bash installed on macOS (3.7, grr).

Karls-Air:otp_vip kgoetz$ git-split-branch api-refactor split-testsuite .coverage* .pydocstylerc pytest.ini requirements-testing.txt test*
/Users/kgoetz/.bin/git-split-branch: line 130: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
Rewrite 3aca8b9e463ffbe9a4d1e7a9afafc02e3bc07ff2 (59/60) (10 seconds passed, remaining 0 predicted)    
split-testsuite: creating at 8828672
api-refactor: rewriting to 7ccb5c4
Karls-Air:otp_vip kgoetz$ 

More of an FYI than anything else.

goetzk avatar Feb 25 '18 03:02 goetzk

Haha, yeah... associative arrays arrived in Bash 4. It may not be fatal but I wouldn't be confident about correct results. Good to know though, thanks.

brew install bash maybe?

djpohly avatar Feb 26 '18 04:02 djpohly

Good thought! I can submit a PR documenting that requirement in the readme if you would like, otherwise I'm happy for this to be considered resolved.

goetzk avatar Feb 26 '18 09:02 goetzk