mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 00:31:55 +08:00
Fix error message for variable used as command
This commit is contained in:
parent
5e1c71b059
commit
54b6a1c08e
@ -830,7 +830,7 @@ parse_execution_result_t parse_execution_context_t::handle_command_not_found(con
|
||||
{
|
||||
this->report_error(statement_node,
|
||||
_(L"Variables may not be used as commands. In fish, please define a function or use 'eval %ls'."),
|
||||
cmd+1);
|
||||
cmd);
|
||||
}
|
||||
else if (wcschr(cmd, L'$'))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user