if hash tmux 2>/dev/null; then
	tmux a -t "$1" || exec tmux new -s "$1" && exit
fi

name="$(echo "$1" | tr -d '\n')"
if hash tmux 2>/dev/null; then
	tmux a -t "$name" || exec tmux new -s "$name" && exit
fi

Fix newline char in tmux session name
Fix newline char in tmux session name
