tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

MacOS restore returned 2

Open PushUpek opened this issue 3 years ago • 0 comments

For MacOS 13.0beta and tmux 3.3a restore not working. When I hit prefix + ctr+r I get error: '/Users/pushupek/.tmux/plugins/tmux-resurrect/scripts/restore.sh' returned 2

So after some digging it turned out that when I call ./restore.sh it exit with errors:

/Users/pushupek/.tmux/plugins/tmux-resurrect/scripts/restore.sh: line 205: syntax error near unexpected token `<'
/Users/pushupek/.tmux/plugins/tmux-resurrect/scripts/restore.sh: line 205: `    done < <(echo "$pane")'

But after adding set +o posix after shebang in restore.sh it runs correctly. I don't know if its correct way to fix this issue (I don't know bash very well)

PushUpek avatar Jul 20 '22 09:07 PushUpek