Quote response fifo
This commit is contained in:
parent
46d94c3343
commit
eda1d2bb96
@ -281,13 +281,13 @@ where
|
|||||||
|
|
||||||
cmd(match keys.as_ref() {
|
cmd(match keys.as_ref() {
|
||||||
None => format!(
|
None => format!(
|
||||||
"echo -quoting shell -to-file {response_fifo} -- {}",
|
"echo -quoting shell -to-file '{response_fifo}' -- {}",
|
||||||
msg.as_ref()
|
msg.as_ref()
|
||||||
),
|
),
|
||||||
Some(keys) => format!(
|
Some(keys) => format!(
|
||||||
r#"evaluate-commands -draft %{{
|
r#"evaluate-commands -draft %{{
|
||||||
execute-keys '{}';
|
execute-keys '{}';
|
||||||
echo -quoting shell -to-file {response_fifo} -- {};
|
echo -quoting shell -to-file '{response_fifo}' -- {};
|
||||||
}}"#,
|
}}"#,
|
||||||
escape(keys.as_ref()),
|
escape(keys.as_ref()),
|
||||||
msg.as_ref()
|
msg.as_ref()
|
||||||
|
Loading…
Reference in New Issue
Block a user