Skip to content

Syntax error: "(" unexpected. #4

@Demacri

Description

@Demacri

First of all, thank u for the awesome job.

I'm using it, but i want to report that following the installation it doesn't work as-is.

Steps to reproduce:
0. $ nvm use 23

  1. $ npm install -g cmdly
  2. $ cmdly suggest "remove alias ghcs"
  3. gives this output: /home/demacri/.nvm/versions/node/v23.8.0/bin/cmdly: 1: Syntax error: "(" unexpected

Actually setting up the alias like
$ alias cli='/home/acapezzera/.nvm/versions/node/v23.8.0/bin/node /home/acapezzera/.nvm/versions/node/v23.8.0/bin/cmdly'
$ cli suggest "remove alias ghcs"
it works.

I think somehow zsh tries to run it with shell and not with node. Hope the hint helps.

Have a good day!

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