diff --git a/src/parse_execution.cpp b/src/parse_execution.cpp index 43e886f59..c50619edc 100644 --- a/src/parse_execution.cpp +++ b/src/parse_execution.cpp @@ -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'$')) {