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
Such syntax errors are really simple to find. At first glance the file looks okay, so I'd suggest you comment out every single line (with #
) and see if the error still manifests.
Then just do binary search, that is, comment in the first half of the file. If that works continue with the third quarter (otherwise with the first quarter). And so forth.