curl: (7) Failed to connect to releases.hashicorp.com port 443: Bad file descriptor
tfenv v2.1.0 installed on macOS Big Sur 11.1 via Homebrew.
➜ ~ tfenv list-remote
curl: (7) Failed to connect to releases.hashicorp.com port 443: Bad file descriptor
Failed to download remote versions from https://releases.hashicorp.com/terraform/
➜ ~ tfenv --version
tfenv 2.1.0
No issue with tfenv v2.0.0 installed via Git on the same machine (Homebrew formula for v2.0.0 is no longer available).
Update No issue with tfenv v2.1.0 installed via Git on the same machine.
I can't think of what changed in 2.1.0 that would affect list-remote, that's rather weird, especially a failure on curl itself.
Can you drop some output of the same with TFENV_DEBUG=3?
Also, I have no contact with anyone managing homebrew for Mac, I am not a Mac user. Do you have a way to feed back to whomever or however homebrew is maintained to ask them to not immediately drop previous versions when new ones are released? I am having trouble with Travis CI at the moment and don't have Mac testing available, so had to release 2.1.0 without specific Mac verification. I wasn't expecting the previous version to disappear so people could at least continue to use that if necessary.
I am not an advanced Homebrew user but, as far as I know, the default formula provided by Homebrew always uses the latest version. Homebrew doesn't have a built-in mechanism for versioning based on the same formula definition, you have to create separate formulas for each version (it can be a local/user formula).
Default tfenv formula is inside homebrew-core repo: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tfenv.rb
I have no issue if I install tfenv via Git.
Output with TFENV_DEBUG=3 and tfenv installed via Homebrew
➜ ~ TFENV_DEBUG=3 tfenv list-remote
[DEBUG] Sourcing helpers from /usr/local/Cellar/tfenv/2.1.0/lib/helpers.sh
++ [helpers.sh:35] source /usr/local/Cellar/tfenv/2.1.0/lib/bashlog.sh
+++ [bashlog.sh:3] set -uo pipefail
+++ [bashlog.sh:14] export -f _log_exception
+++ [bashlog.sh:161] export -f log
+++ [bashlog.sh:163] declare prev_cmd=null
+++ [bashlog.sh:164] declare this_cmd=null
+++ [bashlog.sh:165] trap 'prev_cmd=$this_cmd; this_cmd=$BASH_COMMAND' DEBUG
++++ [bashlog.sh:166] prev_cmd=null
++++ [bashlog.sh:166] this_cmd='log debug '\''DEBUG trap set'\'''
+++ [bashlog.sh:166] log debug 'DEBUG trap set'
+++ [bashlog.sh:17] local 'date_format=+%F %T'
++++ [bashlog.sh:18] date '+%F %T'
+++ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++++ [bashlog.sh:19] date +%s
+++ [bashlog.sh:19] local date_s=1612250508
+++ [bashlog.sh:21] local file=0
++++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+++ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+++ [bashlog.sh:24] local json=0
++++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+++ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+++ [bashlog.sh:27] local syslog=0
++++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+++ [bashlog.sh:28] local tag=tfenv
+++ [bashlog.sh:29] local facility=local0
+++ [bashlog.sh:30] local pid=4878
+++ [bashlog.sh:32] local level=debug
++++ [bashlog.sh:33] echo debug
++++ [bashlog.sh:33] awk '{print toupper($0)}'
+++ [bashlog.sh:33] local upper=DEBUG
+++ [bashlog.sh:34] local debug_level=3
+++ [bashlog.sh:35] local stdout_colours=1
+++ [bashlog.sh:36] local stdout_extra=0
+++ [bashlog.sh:38] local custom_eval_prefix=
+++ [bashlog.sh:40] shift 1
+++ [bashlog.sh:42] local 'line=DEBUG trap set'
+++ [bashlog.sh:58] local severities_DEBUG=7
+++ [bashlog.sh:59] local severities_INFO=6
+++ [bashlog.sh:60] local severities_NOTICE=5
+++ [bashlog.sh:61] local severities_WARN=4
+++ [bashlog.sh:62] local severities_ERROR=3
+++ [bashlog.sh:63] local severities_CRIT=2
+++ [bashlog.sh:64] local severities_ALERT=1
+++ [bashlog.sh:65] local severities_EMERG=0
+++ [bashlog.sh:67] local severity_var=severities_DEBUG
+++ [bashlog.sh:68] local severity=7
+++ [bashlog.sh:70] '[' 3 -gt 0 ']'
+++ [bashlog.sh:72] '[' 0 -eq 1 ']'
+++ [bashlog.sh:83] '[' 0 -eq 1 ']'
+++ [bashlog.sh:94] '[' 0 -eq 1 ']'
+++ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+++ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+++ [bashlog.sh:104] local colours_NOTICE=
+++ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+++ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+++ [bashlog.sh:107] local colours_CRIT=
+++ [bashlog.sh:108] local colours_ALERT=
+++ [bashlog.sh:109] local colours_EMERG=
+++ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+++ [bashlog.sh:112] local 'norm=\033[0m'
+++ [bashlog.sh:113] local colour_var=colours_DEBUG
+++ [bashlog.sh:114] local 'colour=\033[34m'
+++ [bashlog.sh:116] local std_line
+++ [bashlog.sh:117] '[' 3 -le 1 ']'
+++ [bashlog.sh:119] '[' 3 -ge 2 ']'
+++ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: DEBUG trap set'
+++ [bashlog.sh:123] '[' 0 -eq 1 ']'
+++ [bashlog.sh:127] '[' -n '' ']'
+++ [bashlog.sh:131] '[' 1 -eq 1 ']'
+++ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: DEBUG trap set\033[0m'
+++ [bashlog.sh:136] case "${level}" in
+++ [bashlog.sh:141] '[' 3 -gt 0 ']'
+++ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: DEBUG trap set\033[0m'
/usr/local/bin/tfenv: DEBUG trap set
+++ [helpers.sh:111] prev_cmd='log debug '\''DEBUG trap set'\'''
+++ [helpers.sh:111] this_cmd='export -f curlw'
++ [helpers.sh:111] export -f curlw
+++ [helpers.sh:117] prev_cmd='export -f curlw'
+++ [helpers.sh:117] this_cmd='export -f check_active_version'
++ [helpers.sh:117] export -f check_active_version
+++ [helpers.sh:124] prev_cmd='export -f check_active_version'
+++ [helpers.sh:124] this_cmd='export -f check_installed_version'
++ [helpers.sh:124] export -f check_installed_version
+++ [helpers.sh:131] prev_cmd='export -f check_installed_version'
+++ [helpers.sh:131] this_cmd='export -f check_default_version'
++ [helpers.sh:131] export -f check_default_version
+++ [helpers.sh:143] prev_cmd='export -f check_default_version'
+++ [helpers.sh:143] this_cmd='export -f cleanup'
++ [helpers.sh:143] export -f cleanup
+++ [helpers.sh:149] prev_cmd='export -f cleanup'
+++ [helpers.sh:149] this_cmd='export -f error_and_proceed'
++ [helpers.sh:149] export -f error_and_proceed
+++ [helpers.sh:151] prev_cmd='export -f error_and_proceed'
+++ [helpers.sh:151] this_cmd='export TFENV_HELPERS=1'
++ [helpers.sh:151] export TFENV_HELPERS=1
++ [helpers.sh:151] TFENV_HELPERS=1
++ [tfenv:40] prev_cmd='export TFENV_HELPERS=1'
++ [tfenv:40] this_cmd='log '\''debug'\'' '\''Helpers sourced successfully'\'''
+ [tfenv:40] log debug 'Helpers sourced successfully'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Helpers sourced successfully'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: Helpers sourced successfully'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: Helpers sourced successfully\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: Helpers sourced successfully\033[0m'
/usr/local/bin/tfenv: Helpers sourced successfully
+ [tfenv:47] for dir in libexec bin
++ [tfenv:47] prev_cmd='log '\''debug'\'' '\''Helpers sourced successfully'\'''
++ [tfenv:47] this_cmd='for dir in libexec bin'
+ [tfenv:48] case ":${PATH}:" in
++ [tfenv:48] prev_cmd='for dir in libexec bin'
++ [tfenv:48] this_cmd='case ":${PATH}:" in '
++ [tfenv:51] prev_cmd='case ":${PATH}:" in '
++ [tfenv:51] this_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
+ [tfenv:51] log debug '$PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=$PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/libexec'\'', prepending and exporting it now\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/libexec'\'', prepending and exporting it now\033[0m'
/usr/local/bin/tfenv: $PATH does not contain '/usr/local/Cellar/tfenv/2.1.0/libexec', prepending and exporting it now
++ [tfenv:52] prev_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
++ [tfenv:52] this_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
+ [tfenv:52] export 'PATH=/usr/local/Cellar/tfenv/2.1.0/libexec:/Users/catalin/.sdkman/candidates/gradle/current/bin:/Users/catalin/.jenv/shims:/Users/catalin/.jenv/bin:/Users/catalin/.nvm/versions/node/v12.18.4/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Users/catalin/.local/bin:/Users/catalin/.local/bin'
+ [tfenv:52] PATH='/usr/local/Cellar/tfenv/2.1.0/libexec:/Users/catalin/.sdkman/candidates/gradle/current/bin:/Users/catalin/.jenv/shims:/Users/catalin/.jenv/bin:/Users/catalin/.nvm/versions/node/v12.18.4/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Users/catalin/.local/bin:/Users/catalin/.local/bin'
+ [tfenv:47] for dir in libexec bin
++ [tfenv:47] prev_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
++ [tfenv:47] this_cmd='for dir in libexec bin'
+ [tfenv:48] case ":${PATH}:" in
++ [tfenv:48] prev_cmd='for dir in libexec bin'
++ [tfenv:48] this_cmd='case ":${PATH}:" in '
++ [tfenv:51] prev_cmd='case ":${PATH}:" in '
++ [tfenv:51] this_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
+ [tfenv:51] log debug '$PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/bin'\'', prepending and exporting it now'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=$PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/bin'\'', prepending and exporting it now'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/bin'\'', prepending and exporting it now'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/bin'\'', prepending and exporting it now\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.1.0/bin'\'', prepending and exporting it now\033[0m'
/usr/local/bin/tfenv: $PATH does not contain '/usr/local/Cellar/tfenv/2.1.0/bin', prepending and exporting it now
++ [tfenv:52] prev_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
++ [tfenv:52] this_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
+ [tfenv:52] export 'PATH=/usr/local/Cellar/tfenv/2.1.0/bin:/usr/local/Cellar/tfenv/2.1.0/libexec:/Users/catalin/.sdkman/candidates/gradle/current/bin:/Users/catalin/.jenv/shims:/Users/catalin/.jenv/bin:/Users/catalin/.nvm/versions/node/v12.18.4/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Users/catalin/.local/bin:/Users/catalin/.local/bin'
+ [tfenv:52] PATH='/usr/local/Cellar/tfenv/2.1.0/bin:/usr/local/Cellar/tfenv/2.1.0/libexec:/Users/catalin/.sdkman/candidates/gradle/current/bin:/Users/catalin/.jenv/shims:/Users/catalin/.jenv/bin:/Users/catalin/.nvm/versions/node/v12.18.4/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Users/catalin/.local/bin:/Users/catalin/.local/bin'
++ [tfenv:61] prev_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
++ [tfenv:61] this_cmd='declare arg="${1:-""}"'
+ [tfenv:61] declare arg=list-remote
++ [tfenv:63] prev_cmd='declare arg="${1:-""}"'
++ [tfenv:63] this_cmd='log '\''debug'\'' "Setting TFENV_DIR to ${PWD}"'
+ [tfenv:63] log debug 'Setting TFENV_DIR to /Users/catalin'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Setting TFENV_DIR to /Users/catalin'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: Setting TFENV_DIR to /Users/catalin'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: Setting TFENV_DIR to /Users/catalin\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: Setting TFENV_DIR to /Users/catalin\033[0m'
/usr/local/bin/tfenv: Setting TFENV_DIR to /Users/catalin
++ [tfenv:64] prev_cmd='log '\''debug'\'' "Setting TFENV_DIR to ${PWD}"'
++ [tfenv:64] this_cmd='export TFENV_DIR="${PWD}"'
+ [tfenv:64] export TFENV_DIR=/Users/catalin
+ [tfenv:64] TFENV_DIR=/Users/catalin
++ [tfenv:77] prev_cmd='export TFENV_DIR="${PWD}"'
++ [tfenv:77] this_cmd='log '\''debug'\'' "tfenv argument is: ${arg}"'
+ [tfenv:77] log debug 'tfenv argument is: list-remote'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=tfenv argument is: list-remote'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: tfenv argument is: list-remote'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: tfenv argument is: list-remote\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: tfenv argument is: list-remote\033[0m'
/usr/local/bin/tfenv: tfenv argument is: list-remote
+ [tfenv:79] case "${arg}" in
++ [tfenv:79] prev_cmd='log '\''debug'\'' "tfenv argument is: ${arg}"'
++ [tfenv:79] this_cmd='case "${arg}" in '
++ [tfenv:97] prev_cmd='case "${arg}" in '
++ [tfenv:97] this_cmd='log '\''debug'\'' "Long argument provided: ${arg}"'
+ [tfenv:97] log debug 'Long argument provided: list-remote'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Long argument provided: list-remote'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: Long argument provided: list-remote'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: Long argument provided: list-remote\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: Long argument provided: list-remote\033[0m'
/usr/local/bin/tfenv: Long argument provided: list-remote
++ [tfenv:98] prev_cmd='log '\''debug'\'' "Long argument provided: ${arg}"'
++ [tfenv:98] this_cmd='command_path="$(command -v "tfenv-${arg}" || true)"'
++ [tfenv:98] command -v tfenv-list-remote
+ [tfenv:98] command_path=/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote
++ [tfenv:99] prev_cmd='command_path="$(command -v "tfenv-${arg}" || true)"'
++ [tfenv:99] this_cmd='log '\''debug'\'' "Resulting command-path: ${command_path}"'
+ [tfenv:99] log debug 'Resulting command-path: /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Resulting command-path: /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: Resulting command-path: /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: Resulting command-path: /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: Resulting command-path: /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote\033[0m'
/usr/local/bin/tfenv: Resulting command-path: /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote
++ [tfenv:100] prev_cmd='log '\''debug'\'' "Resulting command-path: ${command_path}"'
++ [tfenv:100] this_cmd='[ -z "${command_path}" ]'
+ [tfenv:100] '[' -z /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote ']'
++ [tfenv:106] prev_cmd='[ -z "${command_path}" ]'
++ [tfenv:106] this_cmd='shift 1'
+ [tfenv:106] shift 1
++ [tfenv:107] prev_cmd='shift 1'
++ [tfenv:107] this_cmd='log '\''debug'\'' "Exec: \"${command_path}\" \"$*\""'
+ [tfenv:107] log debug 'Exec: "/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote" ""'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:21:48'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612250508
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=4878
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Exec: "/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote" ""'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/bin/tfenv: Exec: "/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote" ""'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/bin/tfenv: Exec: "/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote" ""\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/bin/tfenv: Exec: "/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote" ""\033[0m'
/usr/local/bin/tfenv: Exec: "/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote" ""
++ [tfenv:108] prev_cmd='log '\''debug'\'' "Exec: \"${command_path}\" \"$*\""'
++ [tfenv:108] this_cmd='exec "${command_path}" "$@"'
+ [tfenv:108] exec /usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote
/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote: TFENV_HELPERS is set, not sourcing helpers again
/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote: $PATH already contains '/usr/local/Cellar/tfenv/2.1.0/libexec', not adding it again
/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote: $PATH already contains '/usr/local/Cellar/tfenv/2.1.0/bin', not adding it again
/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote: TFENV_REMOTE: https://releases.hashicorp.com
curl: (7) Failed to connect to releases.hashicorp.com port 443: Bad file descriptor
/usr/local/Cellar/tfenv/2.1.0/libexec/tfenv-list-remote: Failed to download remote versions from https://releases.hashicorp.com/terraform/
Here's a shell for debugging the current environment. 'exit 0' to resume script from here. Non-zero exit code will abort - parent shell will terminate.
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$
Output with TFENV_DEBUG=3 and tfenv installed via Git
➜ ~ TFENV_DEBUG=3 tfenv list-remote
[DEBUG] Sourcing helpers from /Users/catalin/.tfenv/lib/helpers.sh
++ [helpers.sh:35] source /Users/catalin/.tfenv/lib/bashlog.sh
+++ [bashlog.sh:3] set -uo pipefail
+++ [bashlog.sh:14] export -f _log_exception
+++ [bashlog.sh:161] export -f log
+++ [bashlog.sh:163] declare prev_cmd=null
+++ [bashlog.sh:164] declare this_cmd=null
+++ [bashlog.sh:165] trap 'prev_cmd=$this_cmd; this_cmd=$BASH_COMMAND' DEBUG
++++ [bashlog.sh:166] prev_cmd=null
++++ [bashlog.sh:166] this_cmd='log debug '\''DEBUG trap set'\'''
+++ [bashlog.sh:166] log debug 'DEBUG trap set'
+++ [bashlog.sh:17] local 'date_format=+%F %T'
++++ [bashlog.sh:18] date '+%F %T'
+++ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++++ [bashlog.sh:19] date +%s
+++ [bashlog.sh:19] local date_s=1612251157
+++ [bashlog.sh:21] local file=0
++++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+++ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+++ [bashlog.sh:24] local json=0
++++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+++ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+++ [bashlog.sh:27] local syslog=0
++++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+++ [bashlog.sh:28] local tag=tfenv
+++ [bashlog.sh:29] local facility=local0
+++ [bashlog.sh:30] local pid=5629
+++ [bashlog.sh:32] local level=debug
++++ [bashlog.sh:33] echo debug
++++ [bashlog.sh:33] awk '{print toupper($0)}'
+++ [bashlog.sh:33] local upper=DEBUG
+++ [bashlog.sh:34] local debug_level=3
+++ [bashlog.sh:35] local stdout_colours=1
+++ [bashlog.sh:36] local stdout_extra=0
+++ [bashlog.sh:38] local custom_eval_prefix=
+++ [bashlog.sh:40] shift 1
+++ [bashlog.sh:42] local 'line=DEBUG trap set'
+++ [bashlog.sh:58] local severities_DEBUG=7
+++ [bashlog.sh:59] local severities_INFO=6
+++ [bashlog.sh:60] local severities_NOTICE=5
+++ [bashlog.sh:61] local severities_WARN=4
+++ [bashlog.sh:62] local severities_ERROR=3
+++ [bashlog.sh:63] local severities_CRIT=2
+++ [bashlog.sh:64] local severities_ALERT=1
+++ [bashlog.sh:65] local severities_EMERG=0
+++ [bashlog.sh:67] local severity_var=severities_DEBUG
+++ [bashlog.sh:68] local severity=7
+++ [bashlog.sh:70] '[' 3 -gt 0 ']'
+++ [bashlog.sh:72] '[' 0 -eq 1 ']'
+++ [bashlog.sh:83] '[' 0 -eq 1 ']'
+++ [bashlog.sh:94] '[' 0 -eq 1 ']'
+++ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+++ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+++ [bashlog.sh:104] local colours_NOTICE=
+++ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+++ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+++ [bashlog.sh:107] local colours_CRIT=
+++ [bashlog.sh:108] local colours_ALERT=
+++ [bashlog.sh:109] local colours_EMERG=
+++ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+++ [bashlog.sh:112] local 'norm=\033[0m'
+++ [bashlog.sh:113] local colour_var=colours_DEBUG
+++ [bashlog.sh:114] local 'colour=\033[34m'
+++ [bashlog.sh:116] local std_line
+++ [bashlog.sh:117] '[' 3 -le 1 ']'
+++ [bashlog.sh:119] '[' 3 -ge 2 ']'
+++ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: DEBUG trap set'
+++ [bashlog.sh:123] '[' 0 -eq 1 ']'
+++ [bashlog.sh:127] '[' -n '' ']'
+++ [bashlog.sh:131] '[' 1 -eq 1 ']'
+++ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: DEBUG trap set\033[0m'
+++ [bashlog.sh:136] case "${level}" in
+++ [bashlog.sh:141] '[' 3 -gt 0 ']'
+++ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: DEBUG trap set\033[0m'
/Users/catalin/.tfenv/bin/tfenv: DEBUG trap set
+++ [helpers.sh:111] prev_cmd='log debug '\''DEBUG trap set'\'''
+++ [helpers.sh:111] this_cmd='export -f curlw'
++ [helpers.sh:111] export -f curlw
+++ [helpers.sh:117] prev_cmd='export -f curlw'
+++ [helpers.sh:117] this_cmd='export -f check_active_version'
++ [helpers.sh:117] export -f check_active_version
+++ [helpers.sh:124] prev_cmd='export -f check_active_version'
+++ [helpers.sh:124] this_cmd='export -f check_installed_version'
++ [helpers.sh:124] export -f check_installed_version
+++ [helpers.sh:131] prev_cmd='export -f check_installed_version'
+++ [helpers.sh:131] this_cmd='export -f check_default_version'
++ [helpers.sh:131] export -f check_default_version
+++ [helpers.sh:143] prev_cmd='export -f check_default_version'
+++ [helpers.sh:143] this_cmd='export -f cleanup'
++ [helpers.sh:143] export -f cleanup
+++ [helpers.sh:149] prev_cmd='export -f cleanup'
+++ [helpers.sh:149] this_cmd='export -f error_and_proceed'
++ [helpers.sh:149] export -f error_and_proceed
+++ [helpers.sh:151] prev_cmd='export -f error_and_proceed'
+++ [helpers.sh:151] this_cmd='export TFENV_HELPERS=1'
++ [helpers.sh:151] export TFENV_HELPERS=1
++ [helpers.sh:151] TFENV_HELPERS=1
++ [tfenv:40] prev_cmd='export TFENV_HELPERS=1'
++ [tfenv:40] this_cmd='log '\''debug'\'' '\''Helpers sourced successfully'\'''
+ [tfenv:40] log debug 'Helpers sourced successfully'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Helpers sourced successfully'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: Helpers sourced successfully'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: Helpers sourced successfully\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: Helpers sourced successfully\033[0m'
/Users/catalin/.tfenv/bin/tfenv: Helpers sourced successfully
+ [tfenv:47] for dir in libexec bin
++ [tfenv:47] prev_cmd='log '\''debug'\'' '\''Helpers sourced successfully'\'''
++ [tfenv:47] this_cmd='for dir in libexec bin'
+ [tfenv:48] case ":${PATH}:" in
++ [tfenv:48] prev_cmd='for dir in libexec bin'
++ [tfenv:48] this_cmd='case ":${PATH}:" in '
++ [tfenv:51] prev_cmd='case ":${PATH}:" in '
++ [tfenv:51] this_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
+ [tfenv:51] log debug '$PATH does not contain '\''/Users/catalin/.tfenv/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=$PATH does not contain '\''/Users/catalin/.tfenv/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: $PATH does not contain '\''/Users/catalin/.tfenv/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: $PATH does not contain '\''/Users/catalin/.tfenv/libexec'\'', prepending and exporting it now\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: $PATH does not contain '\''/Users/catalin/.tfenv/libexec'\'', prepending and exporting it now\033[0m'
/Users/catalin/.tfenv/bin/tfenv: $PATH does not contain '/Users/catalin/.tfenv/libexec', prepending and exporting it now
++ [tfenv:52] prev_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
++ [tfenv:52] this_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
+ [tfenv:52] export 'PATH=/Users/catalin/.tfenv/libexec:/Users/catalin/.tfenv/bin:/Users/catalin/.sdkman/candidates/gradle/current/bin:/Users/catalin/.jenv/shims:/Users/catalin/.jenv/bin:/Users/catalin/.nvm/versions/node/v12.18.4/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Users/catalin/.local/bin:/Users/catalin/.local/bin'
+ [tfenv:52] PATH='/Users/catalin/.tfenv/libexec:/Users/catalin/.tfenv/bin:/Users/catalin/.sdkman/candidates/gradle/current/bin:/Users/catalin/.jenv/shims:/Users/catalin/.jenv/bin:/Users/catalin/.nvm/versions/node/v12.18.4/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Users/catalin/.local/bin:/Users/catalin/.local/bin'
+ [tfenv:47] for dir in libexec bin
++ [tfenv:47] prev_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
++ [tfenv:47] this_cmd='for dir in libexec bin'
+ [tfenv:48] case ":${PATH}:" in
++ [tfenv:48] prev_cmd='for dir in libexec bin'
++ [tfenv:48] this_cmd='case ":${PATH}:" in '
++ [tfenv:49] prev_cmd='case ":${PATH}:" in '
++ [tfenv:49] this_cmd='log '\''debug'\'' "\$PATH already contains '\''${TFENV_ROOT}/${dir}'\'', not adding it again"'
+ [tfenv:49] log debug '$PATH already contains '\''/Users/catalin/.tfenv/bin'\'', not adding it again'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=$PATH already contains '\''/Users/catalin/.tfenv/bin'\'', not adding it again'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: $PATH already contains '\''/Users/catalin/.tfenv/bin'\'', not adding it again'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: $PATH already contains '\''/Users/catalin/.tfenv/bin'\'', not adding it again\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: $PATH already contains '\''/Users/catalin/.tfenv/bin'\'', not adding it again\033[0m'
/Users/catalin/.tfenv/bin/tfenv: $PATH already contains '/Users/catalin/.tfenv/bin', not adding it again
++ [tfenv:61] prev_cmd='log '\''debug'\'' "\$PATH already contains '\''${TFENV_ROOT}/${dir}'\'', not adding it again"'
++ [tfenv:61] this_cmd='declare arg="${1:-""}"'
+ [tfenv:61] declare arg=list-remote
++ [tfenv:63] prev_cmd='declare arg="${1:-""}"'
++ [tfenv:63] this_cmd='log '\''debug'\'' "Setting TFENV_DIR to ${PWD}"'
+ [tfenv:63] log debug 'Setting TFENV_DIR to /Users/catalin'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Setting TFENV_DIR to /Users/catalin'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: Setting TFENV_DIR to /Users/catalin'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: Setting TFENV_DIR to /Users/catalin\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: Setting TFENV_DIR to /Users/catalin\033[0m'
/Users/catalin/.tfenv/bin/tfenv: Setting TFENV_DIR to /Users/catalin
++ [tfenv:64] prev_cmd='log '\''debug'\'' "Setting TFENV_DIR to ${PWD}"'
++ [tfenv:64] this_cmd='export TFENV_DIR="${PWD}"'
+ [tfenv:64] export TFENV_DIR=/Users/catalin
+ [tfenv:64] TFENV_DIR=/Users/catalin
++ [tfenv:77] prev_cmd='export TFENV_DIR="${PWD}"'
++ [tfenv:77] this_cmd='log '\''debug'\'' "tfenv argument is: ${arg}"'
+ [tfenv:77] log debug 'tfenv argument is: list-remote'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=tfenv argument is: list-remote'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: tfenv argument is: list-remote'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: tfenv argument is: list-remote\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: tfenv argument is: list-remote\033[0m'
/Users/catalin/.tfenv/bin/tfenv: tfenv argument is: list-remote
+ [tfenv:79] case "${arg}" in
++ [tfenv:79] prev_cmd='log '\''debug'\'' "tfenv argument is: ${arg}"'
++ [tfenv:79] this_cmd='case "${arg}" in '
++ [tfenv:97] prev_cmd='case "${arg}" in '
++ [tfenv:97] this_cmd='log '\''debug'\'' "Long argument provided: ${arg}"'
+ [tfenv:97] log debug 'Long argument provided: list-remote'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Long argument provided: list-remote'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: Long argument provided: list-remote'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: Long argument provided: list-remote\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: Long argument provided: list-remote\033[0m'
/Users/catalin/.tfenv/bin/tfenv: Long argument provided: list-remote
++ [tfenv:98] prev_cmd='log '\''debug'\'' "Long argument provided: ${arg}"'
++ [tfenv:98] this_cmd='command_path="$(command -v "tfenv-${arg}" || true)"'
++ [tfenv:98] command -v tfenv-list-remote
+ [tfenv:98] command_path=/Users/catalin/.tfenv/libexec/tfenv-list-remote
++ [tfenv:99] prev_cmd='command_path="$(command -v "tfenv-${arg}" || true)"'
++ [tfenv:99] this_cmd='log '\''debug'\'' "Resulting command-path: ${command_path}"'
+ [tfenv:99] log debug 'Resulting command-path: /Users/catalin/.tfenv/libexec/tfenv-list-remote'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Resulting command-path: /Users/catalin/.tfenv/libexec/tfenv-list-remote'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: Resulting command-path: /Users/catalin/.tfenv/libexec/tfenv-list-remote'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: Resulting command-path: /Users/catalin/.tfenv/libexec/tfenv-list-remote\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: Resulting command-path: /Users/catalin/.tfenv/libexec/tfenv-list-remote\033[0m'
/Users/catalin/.tfenv/bin/tfenv: Resulting command-path: /Users/catalin/.tfenv/libexec/tfenv-list-remote
++ [tfenv:100] prev_cmd='log '\''debug'\'' "Resulting command-path: ${command_path}"'
++ [tfenv:100] this_cmd='[ -z "${command_path}" ]'
+ [tfenv:100] '[' -z /Users/catalin/.tfenv/libexec/tfenv-list-remote ']'
++ [tfenv:106] prev_cmd='[ -z "${command_path}" ]'
++ [tfenv:106] this_cmd='shift 1'
+ [tfenv:106] shift 1
++ [tfenv:107] prev_cmd='shift 1'
++ [tfenv:107] this_cmd='log '\''debug'\'' "Exec: \"${command_path}\" \"$*\""'
+ [tfenv:107] log debug 'Exec: "/Users/catalin/.tfenv/libexec/tfenv-list-remote" ""'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-02-02 09:32:37'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1612251157
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:22] local file_path=/tmp/tfenv.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:25] local json_path=/tmp/tfenv.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /Users/catalin/.tfenv/bin/tfenv
+ [bashlog.sh:28] local tag=tfenv
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=5629
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Exec: "/Users/catalin/.tfenv/libexec/tfenv-list-remote" ""'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/Users/catalin/.tfenv/bin/tfenv: Exec: "/Users/catalin/.tfenv/libexec/tfenv-list-remote" ""'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/Users/catalin/.tfenv/bin/tfenv: Exec: "/Users/catalin/.tfenv/libexec/tfenv-list-remote" ""\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/Users/catalin/.tfenv/bin/tfenv: Exec: "/Users/catalin/.tfenv/libexec/tfenv-list-remote" ""\033[0m'
/Users/catalin/.tfenv/bin/tfenv: Exec: "/Users/catalin/.tfenv/libexec/tfenv-list-remote" ""
++ [tfenv:108] prev_cmd='log '\''debug'\'' "Exec: \"${command_path}\" \"$*\""'
++ [tfenv:108] this_cmd='exec "${command_path}" "$@"'
+ [tfenv:108] exec /Users/catalin/.tfenv/libexec/tfenv-list-remote
/Users/catalin/.tfenv/libexec/tfenv-list-remote: TFENV_HELPERS is set, not sourcing helpers again
/Users/catalin/.tfenv/libexec/tfenv-list-remote: $PATH already contains '/Users/catalin/.tfenv/libexec', not adding it again
/Users/catalin/.tfenv/libexec/tfenv-list-remote: $PATH already contains '/Users/catalin/.tfenv/bin', not adding it again
/Users/catalin/.tfenv/libexec/tfenv-list-remote: TFENV_REMOTE: https://releases.hashicorp.com
0.15.0-alpha20210127
0.15.0-alpha20210107
0.14.5
0.14.4
0.14.3
0.14.2
0.14.1
0.14.0
0.14.0-rc1
0.14.0-beta2
0.14.0-beta1
0.14.0-alpha20201007
0.14.0-alpha20200923
0.14.0-alpha20200910
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.13.0-rc1
0.13.0-beta3
0.13.0-beta2
0.13.0-beta1
0.12.30
0.12.29
0.12.28
0.12.27
0.12.26
0.12.25
0.12.24
0.12.23
0.12.22
0.12.21
0.12.20
0.12.19
0.12.18
0.12.17
0.12.16
0.12.15
0.12.14
0.12.13
0.12.12
0.12.11
0.12.10
0.12.9
0.12.8
0.12.7
0.12.6
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.12.0-rc1
0.12.0-beta2
0.12.0-beta1
0.12.0-alpha4
0.12.0-alpha3
0.12.0-alpha2
0.12.0-alpha1
0.11.15-oci
0.11.14
0.11.13
0.11.12
0.11.12-beta1
0.11.11
0.11.10
0.11.9
0.11.9-beta1
0.11.8
0.11.7
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.11.0-rc1
0.11.0-beta1
0.10.8
0.10.7
0.10.6
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.10.0-rc1
0.10.0-beta2
0.10.0-beta1
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.13
0.7.12
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.3
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.7
0.3.6
0.3.5
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
When you are presented with the debug shell when it fails, what happens if you repeat the curl command?:
curlw -sSf "${TFENV_REMOTE}/terraform/"
Does it do the same thing? If so can you use that debug shell to work out the source of the Bad File Descriptor error?
Without a mac to test with it's a little difficult to diagnose. Everything seems to work as expected and then the mac just barfs on the curl call.
Cannot reproduce with tfenv v2.2.0, the issue has been resolved. Not sure if it is relevant, before testing I updated macOS Big Sur from v11.1 to v11.2.
➜ ~ brew install tfenv
==> Downloading https://github.com/tfutils/tfenv/archive/v2.2.0.tar.gz
Already downloaded: /Users/catalin/Library/Caches/Homebrew/downloads/d5f3775943c8e090ebe2af640ea8a89f99f7f0c2c47314d76073410338ae02de--tfenv-2.2.0.tar.gz
🍺 /usr/local/Cellar/tfenv/2.2.0: 23 files, 79.6KB, built in 2 seconds
➜ ~ tfenv --version
tfenv 2.2.0
➜ ~ tfenv list-remote
0.15.0-alpha20210127
0.15.0-alpha20210107
0.14.6
...
@altcatalin : I have a new issue with v2.2.0
~ % brew reinstall tfenv ==> Downloading https://github.com/tfutils/tfenv/archive/v2.2.0.tar.gz Already downloaded: /Users/toto/Library/Caches/Homebrew/downloads/d5f3775943c8e090ebe2af640ea8a89f99f7f0c2c47314d76073410338ae02de--tfenv-2.2.0.tar.gz ==> Reinstalling tfenv 🍺 /usr/local/Cellar/tfenv/2.2.0: 23 files, 79.6KB, built in 2 seconds ~ % tfenv list-remote curl: (22) The requested URL returned error: 404 Failed to download remote versions from https://releases.hashicorp.com/terraform/
I'm on Catalina, 10.5.7. Just did a brew update to tfenv 2.2.0 and having the same problem.
Closing due to age and lack of follow-up. This was a network connectivity issue (Failed to connect to releases.hashicorp.com), not a tfenv bug. Common causes: corporate proxy/firewall blocking outbound HTTPS, DNS resolution failure, or VPN configuration. If you encounter this, check connectivity with curl -I https://releases.hashicorp.com/terraform/ and verify proxy settings (HTTPS_PROXY, NO_PROXY env vars).