Quote response fifo

This commit is contained in:
Austen Adler 2022-10-06 21:26:08 -04:00
parent 46d94c3343
commit eda1d2bb96

View File

@ -281,13 +281,13 @@ where
cmd(match keys.as_ref() {
None => format!(
"echo -quoting shell -to-file {response_fifo} -- {}",
"echo -quoting shell -to-file '{response_fifo}' -- {}",
msg.as_ref()
),
Some(keys) => format!(
r#"evaluate-commands -draft %{{
execute-keys '{}';
echo -quoting shell -to-file {response_fifo} -- {};
echo -quoting shell -to-file '{response_fifo}' -- {};
}}"#,
escape(keys.as_ref()),
msg.as_ref()