Home > Syntax Error > Bin/sh 1 Syntax Error Word Unexpected

Bin/sh 1 Syntax Error Word Unexpected


How are you running it? –Miline Feb 8 '15 at 22:15 It is working for me too, but we are copying it from here, please check your file if Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Just coding for the 'next guy'. Password Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). this content

command: dos2unix script_file.sh script_file.sh share|improve this answer edited Apr 24 '15 at 5:31 muru 17.9k33165 answered Apr 24 '15 at 5:26 M Sarfraz 1 add a comment| up vote -1 down Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ But still clueless as to What this error is and How to solve it. You're not supposed to run the source code itself.

Bin Sh C Line 1 Syntax Error Unexpected End Of File

I'm stumped. Find More Posts by cnxsoft 08-23-2011, 04:35 AM #4 me011089 LQ Newbie Registered: Jun 2011 Posts: 16 Original Poster Rep: Thanks for your suggestion, I cross compiled my code Also, if you post code, you can put it inside tags to make it formatted so its easier to read.

Thanks a lot in advance. Click Here to receive this Complete Guide absolutely free. Replace "file.c" with the name of your file. Syntax Error Word Unexpected (expecting Do ) Why?

Ok. Bin Sh C Line 0 Syntax Error Near Unexpected Token Help.. In terms of good practice you are not. Last edited by rohandeshmukh; April 21st, 2009 at 06:28 AM.

Yes, of course I'm an adult! Syntax Error Word Unexpected (expecting ) ) Shell Script Is it possible to check for existence of member templates just by an identifier? ksh limits the number of elements in an array to 1023. So _open.txt has to have less than 1024 "words" in it. Remove advertisements Sponsored Links jim mcnamara View Public Profile Find all posts by jim mcnamara

Bin Sh C Line 0 Syntax Error Near Unexpected Token

Finding a file starting with '-' dash Is there a good way to get from Levoča to Lviv? 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. Bin Sh C Line 1 Syntax Error Unexpected End Of File You should move the app: target after the ifeq blocks to just before the use of $(CC) (and ensure the $(CC) ... Bin Sh 1 Syntax Error Unterminated Quoted String Problem?

Ksh88 was limited to 1023 elements, but I don't think it accepted that syntax for assigning a number of elements to an array. news Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest Please let me know where i am getting wrong. Is any necessary and sufficient criteria for a topological space to be compact using continuous functions? Line 1 Syntax Error Word Unexpected Expecting

You signed in with another tab or window. This site is not affiliated with Linus Torvalds or The Open Group in any way. Having a problem logging in? have a peek at these guys Ubuntu Logo, Ubuntu and Canonical Canonical Ltd.

The maddening thing here is that it compiles, or appears to. Syntax Error Word Unexpected (expecting ) ) Ubuntu IMO. P.S 2- This toolchain was not installed manually by me.

Try adding #!/bin/bash on the top of script? –Miline Feb 8 '15 at 22:14 Works for me on bash.

When taking passengers, what should I do to prepare them? If you add test -z "$mOption" && continue in the middle, if will repair that problem. And anyway, if you can't solve the problem with the information in this thread, ask a new question with the full content of the script and copy-paste the full error message(s). Syntax Error Word Unexpected (expecting ) ) Android You obviously do not buy this idea, so it's okay.

User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. When I added int, it says Syntax error "(" unexpected. That fixed it! –Christina Phillips Feb 9 '15 at 22:36 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up check my blog What does Sauron need with mithril?

Join our community today! Its very unfortunate that ppl did not tell what actually is the problem. I followed the exact steps mentioned at the link compiling Qt-4.6. Search this Thread 08-22-2011, 05:52 AM #1 me011089 LQ Newbie Registered: Jun 2011 Posts: 16 Rep: line 1: syntax error: word unexpected (expecting ")") Hi,I was working with beagle

Browse other questions tagged bash shell ubuntu shell-script or ask your own question. My home country claims I am a dual national of another country, the country in question does not. How do I deal with players always (greedily) pushing for higher rewards? asked 1 year ago viewed 1603 times active 1 year ago Related 2syntax error near unexpected token3Syntax error: redirection unexpected8syntax error near unexpected token ' - bash0syntax error syntax error near

So I started experimenting by removing all the sudo lines and running the whole script via sudo at the command line like so: [email protected]:~$ sudo ./pi_dev_env_install.sh This works fine as expected Reportremoval.sh: 5: Syntax error: word unexpected (expecting "do") Please give me some suggestion. So _open.txt has to have less than 1024 "words" in it. That's not right; ifeq is a make command. (Almost) all lines with TAB characters as the first character on the line in a makefile is passed to the shell.

Do you want to help us debug the posting issues ? < is the place to report it, thanks ! I had read this comment but somehow had assumed that it was a PATH error, so ignored it. Code: a=$( < war_and_peace.txt) You could put a whole book into a bash variable or an array. Harder to read code is harder to maintain.

Simply because you can NOT do something and have it work doesn't necessarily mean it is a great idea.

© Copyright 2017 gatoisland.com. All rights reserved.