Make /bin/sh 1 Syntax Error Unexpected
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow syntax error ( unexpected ubuntu the company Business Learn more about hiring developers or posting ads with us Unix
Syntax Error At Line 1 (' Unexpected In Shell Script
& Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users
Sh: 1: Syntax Error: "(" Unexpected Python
of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and
Syntax Error ( Unexpected Bash Array
rise to the top Shell script fails: Syntax error: “(” unexpected up vote 31 down vote favorite 7 I've been working on a script that automates setting up a development environment for Raspberry Pi development (step by step details that work are here). The script is linked in that article but convenience you can find it here also. Now when run this script install and sets up the environment without error but you have ksh syntax error unexpected to enter your sudo password more than once due to sudo's time-out value by default. So I started experimenting by removing all the sudo lines and running the whole script via sudo at the command line like so: kemra102@ubuntuvm:~$ sudo ./pi_dev_env_install.sh This works fine as expected and gets most of the way through until this point: ./pi_dev_env_install: 68: ./pi_dev_env_install.sh: Syntax error: "(" unexpected Now this line worked fine previously when not running the whole script with sudo. There is nothing about this line running as sudo that should stop it working to my knowledge, does anyone have any ideas? bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 372k696761127 asked Aug 18 '12 at 11:37 kemra102 4731613 The shebang is really in line 9? Due to Ubuntu's DashAsBinSh affinity I suspect your script is interpreted by dash instead of bash. Try to move the shebang in line 1. –manatwork Aug 18 '12 at 11:45 According to that article calling /bin/bash directly instead of /bin/sh will; correctly use bash instead of dash so that should not be an issue as I understand it. I can still move the shebang of course, but that doesn't really explain as to why it works when you don’t sudo the whole script. –kemra102 Aug 18
Sign in Pricing Blog Support Search GitHub This repository Watch 5 Star 11 Fork 4 khaledhosny/reem-kufi Code line 1: syntax error: unexpected word (expecting ")") Issues 4 Pull requests 0 Projects 0 Pulse Graphs New syntax error word unexpected (expecting ) ) shell script issue make: /bin/sh: 1: Syntax error: "(" unexpected #7 Closed felipesanches opened this Issue Jul 19, syntax error at line 1 (' unexpected solaris 2016 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants felipesanches commented Jul 19, http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected 2016 felipe@guarana:~/devel/github_felipesanches/reem-kufi$ make ttf GEN ReemKufi-Regular.ttf /bin/sh: 1: Syntax error: "(" unexpected make: *** [ReemKufi-Regular.ttf] Error 2 felipesanches commented Jul 19, 2016 I need to generate these TTF files in order to verify if my changes to the implementation of a fontbakery test works. This font project was mentioned as an example at https://github.com/khaledhosny/reem-kufi/issues/7 googlefonts/fontbakery#820 felipesanches referenced this issue in googlefonts/fontbakery Jul 19, 2016 Closed Check for glyph names are confused by multiply encoded glyphs #820 khaledhosny added a commit that closed this issue Jul 19, 2016 khaledhosny … Fixes #7. 8b0c27c khaledhosny closed this in 8b0c27c Jul 19, 2016 Owner khaledhosny commented Jul 19, 2016 You need to use Bash, I have changed the Makefile to make sure this is what make uses. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
15 ●2 ●6 ●8 http://answers.ros.org/question/233201/binsh-1-syntax-error-unexpected/ There must be something misconfigured with this system http://www.bleepingcomputer.com/forums/t/602934/how-do-i-fix-codeblocks-sh-1-syntax-error-unexpected/ because the same code builds on other systems no problem. Here's the full output. Using Ubuntu 14.04 and the latest ros-indigo packages from the ppa. This is a fresh install on this system. syntax error Any ideas what it might be? [ 17%] Built target bond_generate_messages_lisp Scanning dependencies of target bond_generate_messages_py [ 17%] Built target bond_generate_messages_py Scanning dependencies of target diagnostic_msgs_generate_messages_cpp [ 17%] Built target diagnostic_msgs_generate_messages_cpp [ 17%] Scanning dependencies of target diagnostic_msgs_generate_messages_py Built target mbot_pure_pursuit [ syntax error unexpected 17%] Built target diagnostic_msgs_generate_messages_py Scanning dependencies of target velodyne_pointcloud_gencfg Scanning dependencies of target velodyne_launch_generate_messages_py [ 19%] Generating dynamic reconfigure files from cfg/VelodyneConfig.cfg: /home/marble/mBot/ros/devel/include/velodyne_pointcloud/VelodyneConfigConfig.h /home/marble/mBot/ros/devel/lib/python2.7/dist-packages/velodyne_pointcloud/cfg/VelodyneConfigConfig.py [ 19%] /bin/sh: 1: Syntax error: "(" unexpected make[2]: *** [/home/marble/mBot/ros/devel/include/velodyne_pointcloud/VelodyneConfigConfig.h] Error 2 make[1]: *** [velodyne_driver_16/velodyne_pointcloud/CMakeFiles/velodyne_pointcloud_gencfg.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Built target velodyne_launch_generate_messages_py Here's the cfg file in question. It starts with a shebang as expected. #!/usr/bin/env python PACKAGE = "velodyne_pointcloud" from math import pi from dynamic_reconfigure.parameter_generator_catkin import * gen = ParameterGenerator() gen.add("min_range", double_t, 0, "min range to publish", 0.9, 0.9, 10.0) gen.add("max_range", double_t, 0, "max range to publish", 130, 0.9, 200) gen.add("view_direction", double_t, 0, "angle defining the center of view", 0.0, -pi, pi) gen.add("view_width", double_t, 0, "angle defining the view width", 2*pi, 0.0, 2*pi)
List Welcome Guide More BleepingComputer.com → Software → Programming Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. BLEEPINGCOMPUTER NEEDS YOUR HELP! BleepingComputer is being sued by Enigma Software because of a negative review of SpyHunter. A case like this could easily cost hundreds of thousands of dollars. If we have ever helped you in the past, please consider helping us. To learn more and to read the lawsuit, click here. CONTRIBUTE TO OUR LEGAL DEFENSE All unused funds will be donated to the Electronic Frontier Foundation (EFF). If you accept cookies from this site, you will only be shown this dialog once!You can press escape or click on the X to close this box. Register a free account to unlock additional features at BleepingComputer.com Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site. Click here to Register a free account now! or read our Welcome Guide to learn how to use this site. How do I fix Code::Blocks sh: 1: Syntax error: "(" unexpected Started by ifunction , Jan 21 2016 09:31 AM Please log in to reply 8 replies to this topic #1 ifunction ifunction Members 4 posts OFFLINE Local time:04:54 AM Posted 21 January 2016 - 09:31 AM Hello, I have found similar errors online, but none of the solutions have resolved this error. I left a comment asking about this and the reply was that is seems sh related. I use zsh and Code::Blocks' uses sh. I'm getting the following error, sh: 1: Syntax error: "(" unexpected Process returned 2 (0x2 , when I run the following code (learncpp.com) in Code::Blocks 13.12: #include