Fix single quote external interpolation (#4867)

This commit is contained in:
JT
2022-03-18 19:59:28 +13:00
committed by GitHub
parent d0cbb2d12c
commit 7773c4cd4d
2 changed files with 12 additions and 3 deletions

View File

@ -263,7 +263,11 @@ pub fn parse_external_call(
let contents = working_set.get_span_contents(*span);
if contents.starts_with(b"$") || contents.starts_with(b"(") {
let (arg, err) = parse_expression(working_set, &[*span], true);
let (arg, err) = parse_dollar_expr(working_set, *span);
error = error.or(err);
args.push(arg);
} else if contents.starts_with(b"(") {
let (arg, err) = parse_full_cell_path(working_set, None, *span);
error = error.or(err);
args.push(arg);
} else {