Home > Syntax Error > Syntax Error Near Unexpected Token Elif'

Syntax Error Near Unexpected Token Elif'

Contents

Word for nemesis that does not refer to a person Will majority of population dismiss a video of fight between two supernatural beings? Let me know. > Regards, Bruce > I thought so too at first. Reload to refresh your session. and its work. (source) share|improve this answer edited Jul 31 '13 at 7:30 j0k 17.6k115061 answered Nov 9 '11 at 12:59 Ram Ram 13516 add a comment| Your Answer draft his comment is here

Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Bash - syntax error But if you look more closely at the error, it is bash that is giving the error, not another shell. You signed out in another tab or window. The text in the error > > messages look like .profile type text, Hmmm.

Syntax Error Near Unexpected Token Elif' In Linux

If I run the autogen command >>directly, it runs fine. >> >>Any idea how I debug this? >>Thanks, >> >>Ron Arts >> >>$ make >>autogen -b uw_send -Dconfdir=/etc/upwatch.d -Dsysconfdir=/etc >>-Dsbindir=/usr/sbin -Dlogdir=/var/log/upwatch It should be: if [ "$i" == '.' ] then or if [ "$i" == '.' ]; then Hope this helps. Thanks Ron Arts SourceForge About Site Status @sfnet_ops Powered by Apache Alluraâ„¢ Find and Develop Software Create a Project Software Directory Top Downloaded Projects Community Blog @sourceforge Resources Help Site Documentation

i still get the same error but it says line 30 instead of 27 Adv Reply March 6th, 2009 #8 nunki View Profile View Forum Posts Private Message Just Give Unable to understand the details of step-down voltage regulator How to properly localize numbers? Join them; it only takes a minute: Sign up Syntax error near unexpected token “elif” in bash up vote 0 down vote favorite Here's my code to display some dialogs. #!/bin/bash Syntax Error Elif Unexpected Expecting Then Feynman diagram and uncertainty Grass grows through the floor of my building Plus and Times, Ones and Nines How do I politely decline a research grant?

What is your name? " name; function tehstart { echo What would you like to do today? Syntax Error Near Unexpected Token `elif' In Unix A pilot's messages Is an internal HDD with Ubuntu automatically bootable from an external USB case? options2 = "Current Different Back" select choice2 in $options2; do if [ "$choice2" = "Current" ]; then echo Ok, the files in this directory are... Is including the key as AAD actually dangerous?

Will majority of population dismiss a video of fight between two supernatural beings? If Elif Bash You can put several commands between if and then, so those semicolons are mandatory. Square root image filter tool in Python more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life It should be output3, not output2.

Syntax Error Near Unexpected Token `elif' In Unix

See below. >>If I run autogen from `make`, bash reports >>syntax errors. To put if and then on the same line you have to separate them with semi-colon, that is the same you did with for and do in the first line. Syntax Error Near Unexpected Token Elif' In Linux This should work: Code: $ for i in $(ls -1a); do > if [ "$i" == '.' ]; then echo 'one dot' > elif [ "$i" == '..' ]; then echo Syntax Error Near Unexpected Token Fi' Shell Script It should be: if [ "$i" == '.' ] then or if [ "$i" == '.' ]; then Hope this helps. 1 members found this post helpful.

echo $BASH_VERSION –outis Nov 15 '10 at 7:06 3.2.0(1)-release –Strawberry Nov 15 '10 at 7:07 Works fine for me with 4.1.5(1)-release, might be something in your old this content Help my maniacal wife decorate our christmas tree Who is spreading the rumour that Santa isn't real? You seem to have CSS turned off. Close current window shortcut How could I have modern computers without GUIs? Syntax Error Near Unexpected Token Else In Shell Script

User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Use http://mywiki.wooledge.org/BashGuide instead. 1 members found this post helpful. For example: if [ $output2 = "Show" ] share|improve this answer answered Dec 1 '11 at 14:03 dogbane 141k44244331 2 LOL wow i'm stupid. –t3hcakeman Dec 1 '11 at 14:07 weblink Re: [Autogen-users] Problem recreating binary rpm from source on RH9 From: Bruce Korb - 2003-08-15 14:20:48 Ron Arts wrote: > > Hi, > > I wanted to recreate the autogen

ls elif [ "$choice2" = "Back" ]; then tehstart else echo !NOT AN OPTION! Syntax Error Near Unexpected Token (' Bash How to write an effective but very gentle reminder email to supervisor to check the Manuscript? options = "ListFiles Make/EditFile Quit" select choice in $options; do if [ "$choice" = "ListFiles" ]; then echo Would you like to list the files of the current directory, or a

Click Here to receive this Complete Guide absolutely free.

Let me know. > Regards, Bruce > I thought so too at first. If you need to reset your password, click here. The time now is 04:19 AM. Syntax Error: Unexpected End Of File Learn More © 2016 The Linux Foundation SourceForge Browse Enterprise Blog Deals Help Create Log In or Join Solution Centers Go Parallel Resources Newsletters Cloud Storage Providers Business VoIP Providers Call

Adv Reply March 6th, 2009 #4 ghostdog74 View Profile View Forum Posts Private Message I Ubuntu, Therefore, I Am Join Date Sep 2006 Beans 2,914 Re: Bash - syntax error Browse other questions tagged bash shell or ask your own question. druuna's advice is correct. http://allconverter.net/syntax-error/syntax-error-near-unexpected-token-in.html fi done } tehstart but when i run it it asks for my name, then after i type my name it shows Code: ./yooten.sh: line 29: syntax error near unexpected token

You are currently viewing LQ as a guest. Not the answer you're looking for? See below. drwxr-x--- 42 druuna internet 28672 May 10 19:01 .. -rwxr-x--- 1 druuna internet 317 May 10 19:01 foobar $ ./foobar one dot two dots yay one dot two dots yay Both

Is it still safe to drive? druuna View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by druuna View Blog 05-10-2010, 03:23 PM #8 lucmove Member Registered: Aug 2005 Subscribed! Unix & Linux Stack Exchange works best with JavaScript enabled FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Council FC Agenda

The time now is 10:19 PM. I am programmed to greet you and give you a few options in a friendly manner. Please don't fill out this field. grail View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by grail 05-10-2010, 10:03 PM #10 lucmove Member Registered: Aug 2005 Location: Brazil

Removing brace from the left of dcases Why is bench pressing your bodyweight harder than doing a pushup?