Early implementation of scripting elements

This commit is contained in:
2025-03-05 01:36:58 -05:00
parent cd216ef1cc
commit 83c9c08106
28 changed files with 1384 additions and 371 deletions

View File

@@ -6,7 +6,7 @@ pub fn export(node: Node, shenv: &mut ShEnv) -> ShResult<()> {
let mut argv_iter = argv.into_iter();
argv_iter.next(); // Ignore 'export'
while let Some(arg) = argv_iter.next() {
let arg_raw = arg.to_string();
let arg_raw = shenv.input_slice(arg.span()).to_string();
if let Some((var,val)) = arg_raw.split_once('=') {
shenv.vars_mut().export(var, val);
} else {