Home > Syntax Error > Bash_profile Line 15 Syntax Error Unexpected End Of File

Bash_profile Line 15 Syntax Error Unexpected End Of File

Contents

Thanks linux bash redhat share|improve this question asked Jan 7 at 14:09 Zon 274 1 Do either of those files have DOS line-endings? GTIN validation Convince people not to share their password with trusted others Limit involving exponentials and arctangent without L'Hôpital Are there any 'smart' ejection seats? Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc? Smart quotes are now enabled." SUCCESS="TRUE" else echo -e "Sorry, an error occured. this contact form

Why did companions have such high social standing? fromdos .bashrcé to correct this file in order to source it. UNIX is a registered trademark of The Open Group. Can Customs make me go back to return my electronic equipment or is it a scam?

.bashrc Line Syntax Error Unexpected End Of File

I'm torn apart between worlds. more hot questions lang-bsh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other Tomasz Maczukin @tmaczukin 2016-09-09 14:23:33 UTC Added waiting for feedback label Lukáš Kocourek @kocour commented 2016-09-09 14:48:29 UTC just tried with current 1.5.2 and yep it behaves the same way Please Join our community today!

You seem to be looking for date +%T -d 'now + 10 seconds'. If you'd like to contribute content, let us know. asked 8 months ago viewed 155 times Related 9Redhat Linux - change directory color3error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory1662How to find Searching an answer for another problem this posts solves my problem: https://community.webfaction.com/questions/5849/cgi-troubles permanent link answered 18 Oct '15, 11:00 Raquel López... 11●1 accept rate: 0% Your answer toggle preview community wiki:

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. Syntax Error Unexpected End Of File Bash If you need to reset your password, click here. Put fi on a line of its own (or put a ; before it). [ "$3" < 50 ] is the same as [ "$3" ] < 50 — it's the Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community.

They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Kamil Trzciński @ayufan commented 2016-04-16 09:32:19 UTC Master Yes, this is the way it is supposed to work. 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, 08:40 AM #12 catkin LQ It's always true.

Syntax Error Unexpected End Of File Bash

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation .bashrc Line Syntax Error Unexpected End Of File Lukáš Kocourek @kocour commented 2016-04-15 13:52:36 UTC just tried to downgrade to 1.0.4 and it's not working even with this version for me... .profile and .bash_profile is processed but .bashrc is Unexpected Eof While Looking For Matching `"' return ###Promts & Terminal theme is black on white ## name=dark purple; relative directory=medium purple; prompt=dark purple; font code=light grey PS1='\[\e[0;35m\]\u\[\e[m\]\[\e[0;37m\] \W\[\e[m\]\[\e[0;35m\] \$ \[\e[m\]\[\e[0;37m\]' ## erase duplicate entries in your history

Smart quotes are now disabled." SUCCESS="TRUE" else echo -e "Sorry, an error occured. http://sovidi.com/syntax-error/bash-syntax-error-unexpected-end-of-line.php Unix & Linux Stack Exchange works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. How does Gandalf get informed of Bilbo's 111st birthday party? For your prompt to work the way you want, it should be PS1='\[\e[36m\]\W\n\[\e[1;31m\]\$\[\e[0m‌\]'. Bashrc Example

We use .bash_profile to set some environment variables, so this broke our builds. Was this change intentional? Why are some programming languages Turing complete but lack some abilities of other languages? The problem seems to be on the "if" statements. navigate here Religious supervisor wants to thank god in the acknowledgements Can I use an HSA as investment vehicle by overcontributing temporarily?

Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. Smart dashes are now enabled." SUCCESS="TRUE" else echo -e "Sorry, an error occured. Subtraction with a negative result What is the sh -c command?

That prompt gives you a smiley face if your last command worked or a frowny face if it failed.

Convince people not to share their password with trusted others On THE other hand or on another hand? 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 You have to run this on OS X"" fi status=$(defaults read NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool) if [ "$status" = "1" ] then echo -e "Smart dashes are enabled." elif [ "$status" = You have to run this on OS X" share|improve this answer answered Sep 8 '14 at 17:42 terdon♦ 86.1k16143250 add a comment| Your Answer draft saved draft discarded Sign up

Miklos Espak @mespak commented 2016-04-14 06:41:33 UTC I tried 1.1.2, the builds fail. I see this in /var/log/messages when I hit the retry button: Apr 14 07:15:07 cmiclab-lin gitlab-runner[22383]: Checking for builds... So here is my script (only works on OS X): #!/bin/bash #DEFINITIONS BEGIN en_sq() { echo -e "Enabling smart quotes..." defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool true status=$(defaults read NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool) 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 http://sovidi.com/syntax-error/bash-module-line-1-syntax-error-unexpected-end-of-file.php You have to run this on OS X!" fi sleep 3 echo -e "\n\n You can now enable or disable smart quotes." until [ "$SUCCESS" = "TRUE" ] do echo -e

use (( )) for arithmetic comparison. –geirha Jun 3 '12 at 14:47 @geirha Oh, yes, of course. return ###Prompts & Terminal theme is black on white ## name=dark purple; absolute directory=medium purple; prompt=dark purple; font code=light grey PS1='\[\e[0;35m\]\u\[\e[m\]\[\e[0;37m\] \W\[\e[m\]\[\e[0;35m\] \$ \[\e[m\]\[\e[0;37m\]' ## Identical to previous prompt *BUT* this freephys Linux - Newbie 3 06-24-2010 09:03 AM syntax error: unexpected end of file ygdrazil Linux - Newbie 3 07-23-2009 05:00 AM Bash script -----------syntax error: unexpected end of file ArthurHuang If you ever got to execute this line, you'd see an error bash: fi: command not found.

Just the first line (Last login: somedate ttys002) –Fred J. Train ride from Copenhagen to Malmo What does the "Phi" sign stand for in musical notation? If that works continue with the third quarter (otherwise with the first quarter).