Skip to content

zsh complains (eval):5: parse error near } when using NVM_LAZY_LOAD #90

Open
@Alex-duzhichao

Description

@Alex-duzhichao

I install command undollar using npm install -g undollar, which defines a global commad $.
image

When sourcing zsh-nvim.plugin.zsh, zsh complains about (eval):5: parse error near }.
I find this problem is caused by the code showing below. The value of varaible $cmd is "$", so it fails to eval that function.

zsh-nvm/zsh-nvm.plugin.zsh

Lines 109 to 113 in 23067bd

eval "$cmd(){
unset -f $cmds > /dev/null 2>&1
_zsh_nvm_load
$cmd \"\$@\"
}"

Are there some ways to fix this?

Thank you very much :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions