summaryrefslogtreecommitdiffstats
path: root/src/runner/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-10 04:32:20 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-10 04:32:20 -0500
commitee5aef94bb86caf64ca5fdcd77a7619ce8680a16 (patch)
treeab789c2920f66508de1aaaca8bdb8549e60e686d /src/runner/mod.rs
parentb8ab245fa35143ec6c1884d7aa685f25a5213940 (diff)
downloadnbsh-ee5aef94bb86caf64ca5fdcd77a7619ce8680a16.tar.gz
nbsh-ee5aef94bb86caf64ca5fdcd77a7619ce8680a16.zip
implement expanding alternations
Diffstat (limited to 'src/runner/mod.rs')
-rw-r--r--src/runner/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
index 22121c2..6d080b8 100644
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -143,7 +143,7 @@ async fn run_commands(
if stack.should_execute() {
list.clone()
.into_iter()
- .map(|w| w.eval(env))
+ .flat_map(|w| w.eval(env))
.collect()
} else {
vec![]