Merge pull request #291 from pattersongp/bugfix-162

Adds a fix for directory paths with spaces that aren't escaped.
pull/295/head
Bruno Sutic 2019-03-01 18:19:42 +01:00 committed by GitHub
commit 8fcb4ab40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ dump_panes() {
continue
fi
full_command="$(pane_full_command $pane_pid)"
dir=$(echo $dir | sed 's/ /\\ /') # escape all spaces in directory path
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}"
done
}