Implemented command substitution

This commit is contained in:
2025-03-19 16:46:45 -04:00
parent 3b0e576d29
commit b6a9bb880d
8 changed files with 285 additions and 37 deletions

View File

@@ -7,7 +7,7 @@ pub fn flowctl(node: Node, kind: ShErrKind) -> ShResult<()> {
};
let mut code = 0;
let mut argv = prepare_argv(argv);
let mut argv = prepare_argv(argv)?;
let cmd = argv.remove(0).0;
if !argv.is_empty() {

View File

@@ -56,7 +56,7 @@ pub fn setup_builtin(
job: &mut JobBldr,
io_mode: Option<(&mut IoStack,Vec<Redir>)>,
) -> ShResult<(Vec<(String,Span)>, Option<IoFrame>)> {
let mut argv: Vec<(String,Span)> = prepare_argv(argv);
let mut argv: Vec<(String,Span)> = prepare_argv(argv)?;
let child_pgid = if let Some(pgid) = job.pgid() {
pgid