Bash_profile Line 13 Syntax Error Unexpected End Of File
Browse other questions tagged bash shell or ask your own question. A simple it didn't work for me suffices. If that works continue with the third quarter (otherwise with the first quarter). Since it's a short script, try creating a new script by pasting it from your question here on StackOverflow, or by simply re-typing it. http://sovidi.com/syntax-error/bash-profile-line-15-syntax-error-unexpected-end-of-file.php
You can install dos2unix in ubuntu with this: sudo apt-get install dos2unix share|improve this answer answered Jun 16 '11 at 2:50 clyfish 4,98311822 thanks guys! Thanks. –Gilles Jun 3 '12 at 14:52 Ok, thank you very much, sorry for these dumb errors, it's one of my first scripts. Is the following extension of finite state automata studied? I accepted a counter offer and regret it: can I go back and contact the previous company?
.bashrc Line Syntax Error Unexpected End Of File
Usage: $0 host database username" exit 0 fi after running sh file.sh: syntax error: unexpected end of file bash syntax share|improve this question edited Jun 17 '13 at 10:26 fedorqui 108k30164211 catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog Page 1 of 2 1 2 > Thread Tools Show xri View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by xri View Blog 12-22-2010, 09:14 AM #15 catkin LQ
what do I do to set all correct? Syntax Error Unexpected End Of File Bash Usage: $0 host database username" exit 0 fi Or, since you're using bash, you could use built-in syntax: if [[ $# -lt 3 || $# -gt 3 ]]; then echo "Error... Either use the numeric comparison operator -lt, or use an arithmetic instruction (( … )). Need to make sure the last EOF is not tabbed.
Syntax Error Unexpected End Of File Bash
I haven't reviewed your logic. However, out of a sudden, I'm getting these error messages: Quote: bash-4.1$ source .bashrc bash: ./.bashrc: line 73: syntax error: unexpected end of file bash-4.1$ source .bash_profile bash: ./.bash_profile: line 16: .bashrc Line Syntax Error Unexpected End Of File Thanks # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi if [ -f ~/.git-completion.bash ]; then source ~/.git-completion.bash fi PS1='\[\e[0;36m\]\W\[\e[m\]\[\e[1;31m\]\$\[\e[m\]' if [ "$PS1" ]; then Bash Syntax Checker How to handle spending money for extended trip to Europe?
rg3 View Public Profile View LQ Blog View Review Entries View HCL Entries Visit rg3's homepage! http://sovidi.com/syntax-error/bash-syntax-error-unexpected-end-of-line.php Meaning of Guns and ghee How does the pilot control the Dassault Rafale? On THE other hand or on another hand? Activate Hearthstone season chest cards? Unexpected Eof While Looking For Matching `"'
was there any more error output? mRgOBLIN View Public Profile View LQ Blog View Review Entries View HCL Entries Visit mRgOBLIN's homepage! Modern soldiers carry axes instead of combat knives. navigate here Not the answer you're looking for?
That would be a good start. Dos2unix Why did companions have such high social standing? share|improve this answer answered Feb 4 at 23:58 mtklr 151114 I did that and removed the last list as well.
Are you new to LinuxQuestions.org?
Page 1 of 2 1 2 > Search this Thread 12-18-2010, 03:50 PM #1 xri Member Registered: Aug 2002 Distribution: Slackware 14.1, Archlinux Posts: 279 Blog Entries: 11 So just run the following command: cp /etc/skel/.bashrc ~ That way you can restore your .bashrc to the way it was when you created the account for the user. What does the "Phi" sign stand for in musical notation? Check out the FAQ! × bashrc configuration question: syntax error: unexpected end of file Jerry gesbbb at yahoo.com Tue Dec 9 14:42:56 PST 2008 Previous message: bashrc configuration question: syntax error:
When taking passengers, what should I do to prepare them? So sayeth the Shepherd How to map and sum a list fast? You're using a single quote to denote the contents of the alias but using the same single quote within the alias definition...I would think it would be breaking in and out http://sovidi.com/syntax-error/bash-module-line-1-syntax-error-unexpected-end-of-file.php Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started
The first one came with the freshly installed Slack and never gave me problems before. Password Slackware This Forum is for the discussion of Slackware Linux. I meant : elif (( $2 < 59 )); then s=$3-50 m=$2+1 h=$1 else s=$3-50 m=0 h=$1+1 fi –Sam Jun 3 '12 at 18:40 add a comment| up vote 0 down Join them; it only takes a minute: Sign up .profile: line 31: syntax error: unexpected end of file up vote 2 down vote favorite I'm bad at bash programming.
share|improve this answer edited Oct 6 '10 at 5:46 answered Oct 6 '10 at 5:35 codaddict 249k50361440 1 Running a bash or sh script through csh is guaranteed to give 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 Usage: $0 host database username" exit 0 fi And, finally, you could of course just check if 3 arguments were given (clean, maintains POSIX shell compatibility): if [ $# -ne 3 You will probably have to go through the file line by line to locate the problem.
A name for a well-informed person who is not believed? Browse other questions tagged linux bash or ask your own question. Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081209/57437240/signature.pgp Previous message: bashrc configuration question: syntax error: unexpected end of file Next message: bashrc configuration question: syntax error: gnashley View Public Profile View LQ Blog View Review Entries View HCL Entries Visit gnashley's homepage!
When we run your program using: sh it says Syntax error: end of file unexpected (expecting "fi") csh it says if: Expression Syntax. You are currently viewing LQ as a guest. It's always true. saved me a lot of time!