Skip to content

Commit 8fcb4ab

Browse files
authored
Merge pull request #291 from pattersongp/bugfix-162
Adds a fix for directory paths with spaces that aren't escaped.
2 parents c3ffe89 + a876ad6 commit 8fcb4ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/save.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ dump_panes() {
233233
continue
234234
fi
235235
full_command="$(pane_full_command $pane_pid)"
236+
dir=$(echo $dir | sed 's/ /\\ /') # escape all spaces in directory path
236237
echo "${line_type}${d}${session_name}${d}${window_number}${d}${window_name}${d}${window_active}${d}${window_flags}${d}${pane_index}${d}${dir}${d}${pane_active}${d}${pane_command}${d}:${full_command}"
237238
done
238239
}

0 commit comments

Comments
 (0)