mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-21 11:58:49 +00:00
_get_proc_restore_command: use "," as sed delimiter
When command_arguments contains a path, there are too many delimiters for sed, which causes it to not replace properly. The result of this is that the original command gets executed without remapping and/or expanding the arguments.
This commit is contained in:
parent
4941cdb074
commit
b8ff2ea08b
@ -132,7 +132,7 @@ _get_proc_restore_command() {
|
||||
if [[ "$restore_element" =~ " ${inline_strategy_arguments_token}" ]]; then
|
||||
# replaces "%" with command arguments
|
||||
local command_arguments="$(_get_command_arguments "$pane_full_command" "$match")"
|
||||
echo "$restore_element" | sed "s/${inline_strategy_arguments_token}/${command_arguments}/"
|
||||
echo "$restore_element" | sed "s,${inline_strategy_arguments_token},${command_arguments},"
|
||||
else
|
||||
echo "$restore_element"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user