aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parse_execution.cpp
diff options
context:
space:
mode:
authorGravatar Corey Ford <corey@coreyford.name>2015-09-03 21:42:42 -0700
committerGravatar Corey Ford <corey@coreyford.name>2015-09-03 21:42:42 -0700
commit54b6a1c08e2e3fefd0b052ccc4bf57a92588330a (patch)
tree8226387acddbea851fca4556c44b6049ec1e5171 /src/parse_execution.cpp
parent5e1c71b059d0d43a79d03bd2c8639f7db987bf5a (diff)
Fix error message for variable used as command
Diffstat (limited to 'src/parse_execution.cpp')
-rw-r--r--src/parse_execution.cpp2
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'$'))
{