diff options
author | Konrad Borowski <glitchmr@myopera.com> | 2013-09-04 20:43:40 +0200 |
---|---|---|
committer | Konrad Borowski <glitchmr@myopera.com> | 2013-09-04 20:43:40 +0200 |
commit | 6709d1067d1d24b1648fce3b169e98546b68d4dd (patch) | |
tree | c674baf9ba67129a4fa7f5403e67f02adfd7749a /parser.cpp | |
parent | 74e27a0a82d5f074590f825e1e7e8277392efed4 (diff) |
Recommend eval when using variable as command.
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2055,15 +2055,17 @@ int parser_t::parse_job(process_t *p, if (val) { debug(0, - _(L"Variables may not be used as commands. Instead, define a function like 'function %ls; %ls $argv; end'. See the help section for the function command by typing 'help function'."), + _(L"Variables may not be used as commands. Instead, define a function like 'function %ls; %ls $argv; end' or use the eval builtin instead, like 'eval %ls'. See the help section for the function command by typing 'help function'."), cmd+1, val, + cmd, cmd); } else { debug(0, - _(L"Variables may not be used as commands. Instead, define a function. See the help section for the function command by typing 'help function'."), + _(L"Variables may not be used as commands. Instead, define a function or use the eval builtin instead, like 'eval %ls'. See the help section for the function command by typing 'help function'."), + cmd, cmd); } } |