fix env shorthand tests
This commit is contained in:
parent
650cc95d94
commit
4c364519a0
|
@ -287,9 +287,12 @@ fn eval_instruction<D: DebugContext>(
|
||||||
ctx.put_reg(*dst, value.into_pipeline_data());
|
ctx.put_reg(*dst, value.into_pipeline_data());
|
||||||
Ok(Continue)
|
Ok(Continue)
|
||||||
} else {
|
} else {
|
||||||
Err(ShellError::EnvVarNotFoundAtRuntime {
|
// FIXME: using the same span twice, shouldn't this really be
|
||||||
envvar_name: key.into(),
|
// EnvVarNotFoundAtRuntime? There are tests that depend on CantFindColumn though...
|
||||||
span: *span,
|
Err(ShellError::CantFindColumn {
|
||||||
|
col_name: key.into(),
|
||||||
|
span: Some(*span),
|
||||||
|
src_span: *span,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5279,6 +5279,8 @@ pub fn parse_expression(working_set: &mut StateWorkingSet, spans: &[Span]) -> Ex
|
||||||
let ty = output.ty.clone();
|
let ty = output.ty.clone();
|
||||||
block.pipelines = vec![Pipeline::from_vec(vec![output])];
|
block.pipelines = vec![Pipeline::from_vec(vec![output])];
|
||||||
|
|
||||||
|
compile_block(working_set, &mut block);
|
||||||
|
|
||||||
let block_id = working_set.add_block(Arc::new(block));
|
let block_id = working_set.add_block(Arc::new(block));
|
||||||
|
|
||||||
let mut env_vars = vec![];
|
let mut env_vars = vec![];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user