Bashrc Line 13 Syntax Error Unexpected End Of File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company syntax error unexpected end of file php Business Learn more about hiring developers or posting ads with us Stack Overflow Questions syntax error unexpected end of file bash Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million syntax error unexpected end of file wordpress programmers, just like you, helping each other. Join them; it only takes a minute: Sign up .bashrc syntax error: unexpected end of file up vote 1 down vote favorite 1 I am getting an unexpected end of syntax error unexpected end of file bash script file error. I am not really sure how to fix it. # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions export PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' export LS_COLORS='di=35;1' alias la='ls -lah' alias cdu='cd /home/hzhang/primary' #module load gnu-compilers/4.7.0 #module load mvapich3/gnu/1.7 .ls /opt/intel/Compiler/11.1/072/bin/ifortvars.sh intel64 #PATH=$PATH:/home/hzhang/primary/over2.2e/bin_dp:/home/hzhang/primary/foiltest PATH=$PATH:/opt/overflow/intel/serial/bin_dp/:/home/hzhang/primary/chimera2.1/bin_dp/:/u/primary/hzhang/pegasus/bin_dp export PATH ulimit -s unlimited linux bash share|improve this question edited Aug 13 '12 at 7:17 Pavan Manjunath 14.6k55992 asked
Syntax Error Unexpected End Of File Shell Script
Aug 13 '12 at 7:16 derry30 3113 2 Nothing apparent in that file, though .ls looks odd. Check /etc/bashrc –geirha Aug 13 '12 at 7:42 1 ... and assuming the .ls is typo only here, in the question, check the .../ifortvars.sh too. And you might want to enclose $PATH in double quotes, in case a PATH element contains some special characters (like brackets). –fork0 Aug 13 '12 at 8:11 as @tooboring4me mentions check if all lines including the last end in \n –mnagel Aug 1 '13 at 12:36 // , .bashrc loads several other files, like .bash_aliases. Check here for an example of this error that was fixed by editing another file: stackoverflow.com/questions/31211571/… –Nathan Basanese Jul 3 '15 at 18:56 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote I had the same error due to missing "fi" line. Make sure to omit syntax errors. The original .bashrc is located in /etc/skel/. So just run the following command: cp /etc/skel/.bashrc ~ share|improve this answer answered Sep 6 '14 at 19:13 LSDeva 676 add a comment| up vote 1 down vote Such syntax errors are really simply to find. At first glance the file looks okay, so I'd suggest you comment out every single line (with #) and see
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the
Syntax Error Unexpected End Of File Python
site Help Center Detailed answers to any questions you syntax error unexpected end of file unix might have Meta Discuss the workings and policies of this site About Us Learn more syntax error unexpected end of file laravel about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered http://stackoverflow.com/questions/11929705/bashrc-syntax-error-unexpected-end-of-file Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the http://askubuntu.com/questions/314222/how-to-reset-bashrc-file-which-edited-before-to-set-path-android-sdk top How to reset .bashrc file which edited before to set PATH ANDROID sdk? [duplicate] up vote 0 down vote favorite This question already has an answer here: How to restore .bashrc file? 3 answers bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier bash: /home/entw/.bashrc: line 111: unexpected EOF while looking for matching `"' bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file entw@entw-desktop:~$ This is the error I frequently getting in terminal, shows when terminal opened. The following commands I applied in terminal, sudo gedit $HOME/.bashrc and added some path variable like android SDK, and run the following command source ~/.bashrc then I got the error in terminal bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier bash: /home/entw/.basrc: line 111: unexpected EOF while looking for matching `"' bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file entw@entw
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki https://ubuntuforums.org/showthread.php?t=2212346 Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! https://lists.freebsd.org/pipermail/freebsd-questions/2008-December/188220.html Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Terminal error bashrc syntax syntax error error unexpected end of file Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 4 of 4 Thread: Terminal error bashrc syntax error unexpected end of file Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode syntax error unexpected Switch to Hybrid Mode Switch to Threaded Mode March 20th, 2014 #1 Luxx View Profile View Forum Posts Private Message Gee! These Aren't Roasted! Join Date Oct 2007 Beans 172 DistroUbuntu 14.04 Trusty Tahr Terminal error bashrc syntax error unexpected end of file bash: /home/v/.bashrc: line 129: syntax error: unexpected end of file This shows at the top of my terminal every time I open it. Things usually work fine in terminal, but I'm wondering what is going on with this message at the top. Interestly, there is no line 129 as .bashrc ends at line 128, although I'm not sure that should be unexpected. I haven't made any deliberate changes to it. Any ideas why I get this message at the top of my terminal or how to make it go away? Adv Reply March 20th, 2014 #2 steeldriver View Profile View Forum Posts Private Message Staff Emeritus Join Date Apr 2012 Beans 6,812 Re: Terminal error bashrc syntax error unexpected end of file Maybe there's a missing newline or some control char
syntax error: unexpected end of file Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] On Tue, 09 Dec 2008 13:28:11 -0800 Noah