Use better quoting for commandline args (#5271)

This commit is contained in:
JT
2022-04-21 15:31:52 +12:00
committed by GitHub
parent ded9d1cedb
commit 96253c69fb
4 changed files with 16 additions and 3 deletions

View File

@ -297,6 +297,15 @@ mod nu_commands {
assert_eq!(actual.out, "foo");
}
#[test]
fn better_arg_quoting() {
let actual = nu!(cwd: ".", r#"
nu -c "\# '"
"#);
assert_eq!(actual.out, "");
}
}
mod nu_script {