I am getting an unexpected end of file error. I am not really sure how to fix it.
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bash
I was facing a similar problem. Using the bash that comes with Windows 10, somehow the line endings had been changed to windows line endings (CRLF). Changing the file back to use unix line endings solved the issue.
Convert eh line endings to unix endings and see if that solves the issue. If editing in Vim, enter the command :set fileformat=unix
and save the file. Several other editors have the ability to convert line endings, such as Notepad++ or Atom