Home > Syntax Error > Bin/sh Syntax Error End Of File Unexpected Expecting Fi

Bin/sh Syntax Error End Of File Unexpected Expecting Fi

Contents

asked 4 years ago viewed 103184 times active 10 months ago Related 2Shell script error message1/shell-script: syntax error near unexpected token `done'4Shell Script - syntax error near unexpected token `else'0Shell script Browse other questions tagged linux shell unix minecraft or ask your own question. Put fi on a line of its own (or put a ; before it). [ "$3" < 50 ] is the same as [ "$3" ] < 50 — it's the What type of sequences are escape sequences starting with "\033]" On THE other hand or on another hand? check my blog

deadeyes View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by deadeyes 04-29-2010, 11:03 AM #3 catkin LQ 5k Club Registered: Dec 2008 Force Microsoft Word to NEVER auto-capitalize the name of my company Rosa Parks is a [symbol?] for the civil rights movement? linux shell unix minecraft share|improve this question edited Aug 9 '13 at 21:43 asked Aug 9 '13 at 21:22 user2649805 13115 The code you posted does not cause the See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question. 2 Welcome

Bin Sh C Line 1 Syntax Error Unexpected End Of File

bash -v (what version r u using?) try to run the comman in dash (#!/bin/dash) Last edited by fdrake; September 4th, 2011 at 12:34 PM. vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. Please explain the local library system in London, England How can I pull a wire through a pipe that has too many turns for fish tape? Please visit this page to clear all LQ-related cookies.

So even if the script successfully started at some point in your testing, it would have aborted once line 68 was reached. It is hard enough to debug programs without having to guess what the source code actually looks like. –Jonathan Leffler Nov 22 '13 at 3:42 Ignoring the EOF, \$2 Also note how I indented the if/else statements. Android Studio Syntax Error: "(" Unexpected (expecting Last edited by zero2xiii; September 4th, 2011 at 12:14 PM.

Find More Posts by ilikejam 04-29-2010, 12:30 PM #6 catkin LQ 5k Club Registered: Dec 2008 Location: Tamil Nadu, India Distribution: Debian Posts: 8,576 Blog Entries: 31 Rep: The Now when run this script install and sets up the environment without error but you have to enter your sudo password more than once due to sudo's time-out value by default. How do I deal with players always (greedily) pushing for higher rewards? Intuition behind Harmonic Analysis in Analytic Number Theory How to check the VPN setting created by an app on an iOS device?

What type of sequences are escape sequences starting with "\033]" What aircraft would have these tail numbers? Aapt: Syntax Error: End Of File Unexpected (expecting ")") But interestingly, on the correct arch the file beginning with #! /bin/sh executed perfectly. I used a common convention for testing the $1 and $2 arguments: I put an x before them in the test. Noun for people/employees/coworkers who tend to say "it's not my job" when asked to do something slightly beyond their norm?

Syntax Error End Of File Unexpected Expecting Then

Please follow the above steps EXACTLY: 1. Adding the shebang line solved it immediately. +1. –bkd.online Oct 9 '13 at 5:14 Facing the issue running sonarqube.sh on Ubuntu 15.10. Bin Sh C Line 1 Syntax Error Unexpected End Of File Dave ilikejam View Public Profile View LQ Blog View Review Entries View HCL Entries Visit ilikejam's homepage! Syntax Error End Of File Unexpected (expecting Done ) more hot questions question feed 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

How to book a flight if my passport doesn't state my gender? click site more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Is any necessary and sufficient criteria for a topological space to be compact using continuous functions? Least Common Multiple An empire to last a hundred centuries How to deal with a very weak student? Java Syntax Error: End Of File Unexpected (expecting ")")

Does mean=mode imply a symmetric distribution? I personally prefer Python but you could use Ruby or whatever you prefer. Stop0syntax error: unexpected end of file1srlua makefile error lua.h No such file or directory0How to solve the 'undefined reference to libusb' error in ros?0`/bin/bash: -c: line 13: syntax error: unexpected end news My home country claims I am a dual national of another country, the country in question does not.

Make up your mind. Syntax Error: "fi" Unexpected (expecting If you see a \r in the above, see FAQ 52 for various ways to get rid of them. paulsm4 View Public Profile View LQ Blog View Review Entries View HCL Entries Visit paulsm4's homepage!

when an error occurs.

UNIX is a registered trademark of The Open Group. fi # Plugins Found for i in $( ls ); do PLUGINNAME=$i done cd .\update wget $PLUGINDOWNLOADLINK # No Plugins Found if [ ! -f $PLUG ]; then echo echo echo I guess with a GNU Bash on Linux you can count on the [ operator being built-in, but doing it this way still works. Syntax Error Unexpected Expecting Fi Ubuntu Read other pgfkeys' value How to map and sum a list fast?

How to increase the population growth of the human race more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile Find More Posts by paulsm4 View Blog 04-29-2010, 02:58 PM #10 roxie600 LQ Newbie Registered: Apr 2010 Posts: 5 Original Poster Rep: Am still getting the end of file Most of the scripts in your ubuntu install has no extension. –geirha May 4 '15 at 19:44 Because packaging guidelines recommend that scripts in PATH shouldn't have extensions, so http://onlinetvsoftware.net/syntax-error/bin-sh-1-syntax-error-word-unexpected-expecting.php Intuition behind Harmonic Analysis in Analytic Number Theory How was this bridge burning and collapsing scene filmed in Buster Keaton's The General?

Dennis numbers 2.0 In a GNU C macro envSet(name), what does (void) "" name mean? Browse other questions tagged bash makefile or ask your own question. simple present for the future the way natives use it Which requires more energy: walking 1 km or cycling 1 km at the same speed? Registration is quick, simple and absolutely free.

Ask Ubuntu works best with JavaScript enabled Register a domain and help support LQ Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles