Closed zentetsukenz closed 7 years ago
This is caused by #61 that introduces associative arrays declare -A ealiases=()
which is a Bash 4 feature. If you use Bash 3.2 (that comes with macOS Sierra for example) the problem manifests.
So kiex
master is unusable on vanilla mac because Apple is reluctant to upgrade Bash due to the licensing change in Bash 4. The workaround is to upgrade Bash manually http://apple.stackexchange.com/questions/193411/update-bash-to-version-4-0-on-osx
Sidenote: Perl5 is the most portable scripting platform.
Reverted changes until this can be written to support Bash 3.2.
@taylor gahhhhh, my bad. I already have the fix for Bash 3 here: https://github.com/greymouser/kiex/tree/unalias+delete
I'm not sure I know the correct git steps in this case; my branch doesn't have the rollback. Should I create a new branch from upstream master on my side, revert the reversion, and cherry-pick my change in? Advice appreciated.
@taylor A new pull request against master has been created with Bash 3 support.
kiex list
command throw out an errorI'm not bash script expert, so I'm not sure what's going on here but looking from the error and the code it seems like
array dereference is trying to evaluate
$version
expression which currently containelixir-1.x.x
and throw an error.