mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix error message for variable used as command
This commit is contained in:
parent
5e1c71b059
commit
54b6a1c08e
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ parse_execution_result_t parse_execution_context_t::handle_command_not_found(con
|
||||||
{
|
{
|
||||||
this->report_error(statement_node,
|
this->report_error(statement_node,
|
||||||
_(L"Variables may not be used as commands. In fish, please define a function or use 'eval %ls'."),
|
_(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'$'))
|
else if (wcschr(cmd, L'$'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue