Skip to content

Completions for relative path are loaded even if the command isn't available in $PATH #9133

@Qix-

Description

@Qix-

fish, version 3.5.1

Yes, this happens in a clean environment.

I manage my Github clones with a script called gh, which I invoke via ./gh foo/bar.

Fish seems to think I'm trying to run the global gh command, which is not the case - I don't use Github's client but I suppose theirs is similarly named gh.

Whenever I write ./gh foo/bar, I get the error message:

/opt/homebrew/Cellar/fish/3.5.1/share/fish/completions/gh.fish (line 1):
gh completion --shell fish 2>/dev/null | source
^
from sourcing file /opt/homebrew/Cellar/fish/3.5.1/share/fish/completions/gh.fish

Shouldn't it be seeing that I'm writing ./gh and not gh and ignore it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions