.bashrc syntax error: unexpected end of file

前端 未结 8 722

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         


        
8条回答
  •  一向
    一向 (楼主)
    2021-01-05 15:20

    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.

提交回复
热议问题