From 54b6a1c08e2e3fefd0b052ccc4bf57a92588330a Mon Sep 17 00:00:00 2001 From: Corey Ford Date: Thu, 3 Sep 2015 21:42:42 -0700 Subject: Fix error message for variable used as command --- src/parse_execution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse_execution.cpp') diff --git a/src/parse_execution.cpp b/src/parse_execution.cpp index 43e886f5..c50619ed 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'$')) { -- cgit v1.2.3