aboutsummaryrefslogtreecommitdiffhomepage
path: root/autoload.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-31 15:57:08 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-31 15:57:08 -0800
commitad8d68dd4390753901b5e1dae4b4c4b44be7fcea (patch)
tree5b8f5e3ca3d698dd7ae764f2833ab7b91726fd93 /autoload.cpp
parent0db1b6ce44b2dcae94a4d33c04b606ef819bb78b (diff)
Make subcommands modify $status, and make builtin_set not modify status unless it fails
Diffstat (limited to 'autoload.cpp')
-rw-r--r--autoload.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/autoload.cpp b/autoload.cpp
index fbc91758..3470ecae 100644
--- a/autoload.cpp
+++ b/autoload.cpp
@@ -358,11 +358,9 @@ bool autoload_t::locate_file_and_maybe_load_it(const wcstring &cmd, bool really_
/* If we have a script, either built-in or a file source, then run it */
if (really_load && has_script_source)
{
- if (exec_subshell(script_source) == -1)
+ if (exec_subshell(script_source, false /* do not apply exit status */) == -1)
{
- /*
- Do nothing on failiure
- */
+ /* Do nothing on failure */
}
}