mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:05:47 +02:00
escape external args (#6560)
This commit is contained in:
@ -186,6 +186,20 @@ fn external_arg_with_variable_name() {
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn external_command_escape_args() {
|
||||
Playground::setup("external failed command with semicolon", |dirs, _| {
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
^echo "\"abcd"
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, r#""abcd"#);
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[test]
|
||||
fn explicit_glob_windows() {
|
||||
|
Reference in New Issue
Block a user