Fix error message for variable used as command

This commit is contained in:
Corey Ford 2015-09-03 21:42:42 -07:00
parent 5e1c71b059
commit 54b6a1c08e

View file

@ -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'$'))
{ {