simplify grammar a little bit.

This commit is contained in:
Kelvin Sherlock
2016-02-04 21:45:04 -05:00
parent 09ed3428bc
commit 449595c56b
2 changed files with 26 additions and 82 deletions

View File

@@ -196,7 +196,7 @@ int and_command::execute(Environment &e, const fdmask &fds, bool throwup) {
int rv = 0;
for (auto &c : children) {
if (!c) continue;
c->execute(e, fds, false);
rv = c->execute(e, fds, false);
if (rv != 0) return rv;
}
@@ -208,9 +208,8 @@ int vector_command::execute(Environment &e, const fdmask &fds, bool throwup) {
int rv = 0;
for (auto &c : children) {
if (!c) continue;
rv = c->execute(e, fds);
if (e.exit()) break;
}
return e.status(rv);
}