command line - bash syntax error near token `fi' - Ask Ubuntu
when open terminal, following 2 lines
bash: /home/kyle/.bashrc: line 119: syntax error near unexpected token `fi' bash: /home/kyle/.bashrc: line 119: `fi'
i don't know why started or if it's normal. causes syntax error , how fix it?
when open new terminal window system starts new instance of shell. in case bash
(bourne again shell)
when bash
starts reads bunch of startup scripts configure various things prompt, colors, etc. 1 of these scripts file .bashrc
in home directory. more info on check what .bashrc file , do?
more info on bash
scripting: https://help.ubuntu.com/community/beginners/bashscripting
in case file has been edited , not valid bash
script. therefore error message line 119: syntax error near unexpected token...
that why steeldriver asked post content of file see wrong it.
that file optional. if want rename else - .bashrc.old
example , open new window. error messages gone prompts, colous , other shell customisations gone too.
Comments
Post a Comment