Skip to content

Commit b8ff2ea

Browse files
committed
_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.
1 parent 4941cdb commit b8ff2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/process_restore_helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ _get_proc_restore_command() {
132132
if [[ "$restore_element" =~ " ${inline_strategy_arguments_token}" ]]; then
133133
# replaces "%" with command arguments
134134
local command_arguments="$(_get_command_arguments "$pane_full_command" "$match")"
135-
echo "$restore_element" | sed "s/${inline_strategy_arguments_token}/${command_arguments}/"
135+
echo "$restore_element" | sed "s,${inline_strategy_arguments_token},${command_arguments},"
136136
else
137137
echo "$restore_element"
138138
fi

0 commit comments

Comments
 (0)