Skip to content

Clean install causes command not found logs on internal functions #487

@bkosm

Description

@bkosm

Environment

ARM chip with macOS, zsh, starship.rs prompt

Steps

  1. brew install bison
  2. bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

Issue

After reloading the shell and on any gvm invocation, the terminal prints command not found error logs with weird chars.

/Users/bartosz.kosmala/.gvm/scripts/function/compare_version.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_error.zwc: line 1: �: No such file or directory
/Users/bartosz.kosmala/.gvm/scripts/function/display_fatal.zwc: line 1: �����8�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_message.zwc: line 1: �����¯�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_warning.zwc: line 1: �����$�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/extract_version.zwc: line 1: �����ê�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_local_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_path_upwards.zwc: line 1: �����t: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_environment_sanitize.zwc: line 1: �����¨�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_export_path.zwc: line 1: �����‹�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/locale_text.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/munge_path.zwc: line 1: �����∏�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/read_environment_file.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_version.zwc: line 1: �����T�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/compare_version.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_error.zwc: line 1: �: No such file or directory
/Users/bartosz.kosmala/.gvm/scripts/function/display_fatal.zwc: line 1: �����8�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_message.zwc: line 1: �����¯�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_warning.zwc: line 1: �����$�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/extract_version.zwc: line 1: �����ê�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_local_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_path_upwards.zwc: line 1: �����t: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_environment_sanitize.zwc: line 1: �����¨�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_export_path.zwc: line 1: �����‹�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/locale_text.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/munge_path.zwc: line 1: �����∏�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/read_environment_file.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_version.zwc: line 1: �����T�: command not found
Usage: gvm [command]

Description:
  GVM is the Go Version Manager

Commands:
  version    - print the gvm version number
  get        - gets the latest code (for debugging)
  use        - select a go version to use (--default to set permanently)
  diff       - view changes to Go root
  help       - display this usage text
  implode    - completely remove gvm
  install    - install go versions
  uninstall  - uninstall go versions
  cross      - install go cross compilers
  linkthis   - link this directory into GOPATH
  list       - list installed go versions
  listall    - list available versions
  alias      - manage go version aliases
  pkgset     - manage go packages sets
  pkgenv     - edit the environment for a package set
  applymod   - apply the go version in go.mod

The procedure below causes same behavior on my machine, crossing out the problem steming from the prompt or the shell.

bash
source ~/.gvm/scripts/gvm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions