8000 Cannot use variable when typing path to command · Issue #154 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Cannot use variable when typing path to command #154

@lilyball

Description

@lilyball

Fish does not accept $HOME/bin/mvim as a valid typed command. This is perfectly legitimate in bash and other shells, and I wonder why Fish disallows it.

> $HOME/bin/mvim
fish: Variables may not be used as commands. Instead, define a function. See the help section
for the function command by typing 'help function'.

Even more curious, if I quote the variable, I get a slightly corrupted error message back.

> "$HOME"/bin/mvim
fish: Unknown command 'HOME/bin/mvim'

That garbage character is U+F003

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0