summaryrefslogtreecommitdiffstats
path: root/src/runner/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-17 01:19:08 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-17 01:23:08 -0500
commit9b1595b795121d233cd0cf32537661839e318914 (patch)
tree26edb4376ed189373e8a4f3b3d41da6c27d23bf4 /src/runner/mod.rs
parent1327c2a7ba3b81fe69e4126270b2cfe24c8aa4ee (diff)
downloadnbsh-9b1595b795121d233cd0cf32537661839e318914.tar.gz
nbsh-9b1595b795121d233cd0cf32537661839e318914.zip
basic subshell implementation
Diffstat (limited to 'src/runner/mod.rs')
-rw-r--r--src/runner/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
index 98894b3..63af51b 100644
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -158,7 +158,11 @@ async fn run_commands(
*should = !list.is_empty();
if *should {
let val = list.remove(0);
+ // XXX i really need to just pick one location and
+ // stick with it instead of trying to keep these
+ // in sync
env.set_var(var, &val);
+ std::env::set_var(var, &val);
}
} else {
unreachable!();