diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-31 15:57:08 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-31 15:57:08 -0800 |
commit | ad8d68dd4390753901b5e1dae4b4c4b44be7fcea (patch) | |
tree | 5b8f5e3ca3d698dd7ae764f2833ab7b91726fd93 /builtin.cpp | |
parent | 0db1b6ce44b2dcae94a4d33c04b606ef819bb78b (diff) |
Make subcommands modify $status, and make builtin_set not modify status unless it fails
https://github.com/fish-shell/fish-shell/issues/547
https://github.com/fish-shell/fish-shell/issues/214
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp index d20dd27e..646db2b0 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -215,7 +215,7 @@ wcstring builtin_help_get(parser_t &parser, const wchar_t *name) wcstring out; const wcstring name_esc = escape_string(name, 1); const wcstring cmd = format_string(L"__fish_print_help %ls", name_esc.c_str()); - if (exec_subshell(cmd, lst) >= 0) + if (exec_subshell(cmd, lst, false /* don't apply exit status */) >= 0) { for (size_t i=0; i<lst.size(); i++) { |