I get a bash syntax error message every time I open Terminal on macbook -bash: /Users/admin/.bash_sessions/720116FC-4C25-4FFA-AC15-00D5C843C15F.session: line 1: syntax error near unexpected token ('
-bash: /Users/admin/.bash_sessions/720116FC-4C25-4FFA-AC15-00D5C843C15F.session: line 1: echo Restored session: 


Does anyone know how to fix this?
Open /etc/bashrc_Apple_Terminal (requires sudo), replace

echo echo Restored session: $(date) &gt;| "$SHELL_SESSION_FILE"


with

echo echo \"Restored session: $(date)\" &gt;| "$SHELL_SESSION_FILE"


The point is to quote the echoed message.