diff options
author | Corey Ford <corey@coreyford.name> | 2015-09-03 21:42:42 -0700 |
---|---|---|
committer | Corey Ford <corey@coreyford.name> | 2015-09-03 21:42:42 -0700 |
commit | 54b6a1c08e2e3fefd0b052ccc4bf57a92588330a (patch) | |
tree | 8226387acddbea851fca4556c44b6049ec1e5171 | |
parent | 5e1c71b059d0d43a79d03bd2c8639f7db987bf5a (diff) |
Fix error message for variable used as command
-rw-r--r-- | src/parse_execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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'$')) { |