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

@ -83,8 +83,13 @@ fn execute_binary_in_string() {
assert_eq!(actual.out, "$0");
}
//FIXME: jt - this is blocked on https://github.com/nushell/engine-q/issues/875
#[ignore]
#[test]
fn single_quote_dollar_external() {
let actual = nu!(cwd: ".", r#"let author = 'JT'; ^echo $'foo=($author)'"#);
assert_eq!(actual.out, "foo=JT");
}
#[test]
fn redirects_custom_command_external() {
let actual = nu!(cwd: ".", r#"def foo [] { nu --testbin cococo foo bar }; foo | str length"#);