Skip to content

_encode in _bash_pseudo_hash fails under zsh causing repeated "command not found: -e"` #527

@yangdehui

Description

@yangdehui

When using gvm (Go Version Manager) on macOS with the default shell zsh, a function called _encode is automatically loaded from:

~/.gvm/scripts/function/_bash_pseudo_hash

This function contains Bash-specific syntax, which fails in zsh and produces repeated errors:

_encode:25: command not found: -e

This happens every time any command is executed, even commands unrelated to gvm.

Example:

_encode:25: command not found: -e
_encode:25: command not found: -e

This significantly impacts terminal usability.

Go Version Manager v1.0.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions