Almost all UNIX-like systems have bash, so it's possible to have your cake and eat it, too. it's suppose to be much lighter and faster then bash, being that the reason why they choose it by Edgy days. I started writing a new one and got the above error. Is there a good way to get from Levoča to Lviv?
Forum Operations by The UNIX and Linux Forums Welcome to the most active Linux Forum on the web. 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 Don't have hard-tabs (or spaces) leading before an ifeq or Makefile statement. I checked Google and everything said to use #!/bin/bash The problem is, I was using that all along.....
There is a concept: self-documenting code. but dash is much more different. Something's screwy on your system. Syntax Error Word Unexpected (expecting ) ) Shell Script Reload to refresh your session.
So, either you run: bash regenerate-makefiles.sh or replace first line with: #!/bin/bash (or even remove the 1st line and environment will call it with bash) or (losing generality) adapt it for Syntax Error Unexpected Expecting Keyword_end Ksh88 was limited to 1023 elements, but I don't think it accepted that syntax for assigning a number of elements to an array. Problem in details- I have been trying to cross-compile Qt-4.6 as per Sourcery tool chain on Ubuntu 10.04. nikkitan commented Mar 6, 2012 I saw the same error in policy-refactor too.
msseverAugust 2nd, 2008, 09:01 PMThanks for the suggestions. Line 1 Syntax Error Word Unexpected Expecting The time now is 12:00 PM. My girlfriend has mentioned disowning her 14 y/o transgender daughter Video displays in Star Wars Could Hillary Clinton have declined to defend Thomas Taylor? This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.
Please visit this page to clear all LQ-related cookies. It will almost always fail on Debian-ish distributions where sh is dash. Bin Sh C Line 1 Syntax Error Unexpected End Of File makefile share|improve this question asked Jan 20 '14 at 5:36 Chirag Parekh 11115 add a comment| 1 Answer 1 active oldest votes up vote 13 down vote accepted The formatting in Syntax Error Unexpected Expecting End Syntaxerror I guess I'll have to read up on dash, bash and sh to understand the difference between the different shells.
arm qt4 share|improve this question asked Apr 19 at 13:53 satya prakash Panigrahi 813 migrated from unix.stackexchange.com Apr 19 at 17:50 This question came from our site for users of Linux, his comment is here Having a problem logging in? Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation Programming Talk Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Last edited by adrenalin6; March 9th, 2011 at 01:28 PM. Ruby Syntax Error Unexpected Expecting
Yes, syntactically, you are correct. Why don't most major game engines use gifs for animated textures? This makes me think that bash might be installed somewhere else, but I sure can't find it. this contact form In either bash or ksh93, simply assigning it is enough: Code: lyrics=( $( tr '\n' ' ' < _open.txt ) ) Note that you do not need tr; the shell will
So _open.txt has to have less than 1024 "words" in it. Syntax Error Unexpected In Shell Script Do I have to remove dash first? If you need to reset your password, click here.
WeyOhJune 11th, 2008, 08:39 PMWhat if my first line says: #!/bin/bash? asked 5 months ago viewed 3246 times active 5 months ago Get the weekly newsletter! Another possibility is that that script you're trying to run has been written on the assumption that sh was bash and uses constructs that are not portable to other sh implementations. Syntax Error Word Unexpected (expecting ) ) Ubuntu But I get the following error right in the ./configure step - /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")") Searching in internet I found lots of posts regarding this error.
Ubuntu, since Edgy, replaced old sh with dash, creating a series of incompatibilities in a lot of scripts... So this is the same as the above: Code: lyrics=( $( < _open.txt ) ) Quote: If you are using bash or ksh this will work. Rui PaisAugust 2nd, 2008, 04:15 PMI don't have a graphical interface installed on my server. navigate here but it yields the same error message.
You signed out in another tab or window. period! Any ideas? So, either you run: Code: bash regenerate-makefiles.sh or replace first line with: Code: #!/bin/bash (or even remove the 1st line and environment will call it with bash) or (losing generality) adapt
share|improve this answer answered Mar 26 '15 at 19:54 that other guy 45k54070 I didn't realize there's a difference. Then ensure that the it is indeed installed, and if not, install it. I ran one of my old scripts and all was fine. There is nothing about this line running as sudo that should stop it working to my knowledge, does anyone have any ideas?
Both bash and dash are essential packages, which means that you shouldn't be able to mess with them without a big warning. But you could indent 4 spaces or something like that. –MadScientist Apr 20 at 21:51 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up vote 5 down vote favorite 2 PLATFORM = x86 CUD = cuda X86 = x86 PAN = panda ARM = arm app: ifeq($(PLATFORM),$(CUD)) CC = dum3 endif ifeq($(PLATFORM), $(X86)) CC On my system, I removed the /bin/sh link to dash, and changed it to point to /bin/bash.
Are you new to LinuxQuestions.org?