Home > Syntax Error > Bin/sh Syntax Error Unterminated Quoted String

Bin/sh Syntax Error Unterminated Quoted String

Contents

The time now is 06:13. What information do you need? add a comment| 2 Answers 2 active oldest votes up vote 2 down vote That cannot work. Try something like this instead: cmd = ['/bin/wc', '-l'] # Need full path! [cmd.extend(p) for p in l if os.path.splitext(p)[1] in EXT] result = os.popen2(cmd).read() Note that the subprocess module is check my blog

Problem? Problem? You signed in with another tab or window. When taking passengers, what should I do to prepare them?

Docker /bin/sh: 1: Syntax Error: Unterminated Quoted String

thanks for pointing me in the right direction! –klarezz Mar 13 '15 at 22:20 add a comment| up vote 0 down vote accepted The main error here is thinking that the We recommend upgrading to the latest Safari, Google Chrome, or Firefox. more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Do you want to help us debug the posting issues ? < is the place to report it, thanks !

How does Gandalf get informed of Bilbo's 111st birthday party? UNIX is a registered trademark of The Open Group. What is the output of which python (and python --version)? –Johnsyweb Aug 31 '13 at 4:07 the same wrong. –maemual Aug 31 '13 at 4:26 which python Sh: 2: Syntax Error: Unterminated Quoted String Heroku Haha.

It always gives me the error message "36: Syntax error: Unterminated quoted string" If someone could help me edit this it would be much appreciated. bash version info is: GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu) bash ubuntu share|improve this question asked Mar 29 '11 at 14:09 oompahloompah 2,700114576 The $date() call is correct - the This site is not affiliated with Linus Torvalds or The Open Group in any way. You signed out in another tab or window.

asked 1 year ago viewed 3369 times active 1 year ago Linked 4 Quoting in a function results in error Related 26How to escape quotes in shell?5Calling bash from sh (dash) Phantomjs Syntax Error Unterminated Quoted String Can you provide more information how to reproduce this issue using plain phantomjs? I'm kind of a newbie at Linux, so maybe it wasn't so hard to tell, but I'm impressed all the same! The time now is 06:13 AM. - Contact Us - Unix & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top

Docker Syntax Error: Unterminated Quoted String

I don't relish the prospect of rewriting the script so that all print statements are redirected to file instead of stdout - unless I am missing something? - please clarify –oompahloompah badboy commented Jun 25, 2013 Oh… GitHub member mislav commented Jun 25, 2013 The .split.first call was reported as #339 and fixed in master. Docker /bin/sh: 1: Syntax Error: Unterminated Quoted String Also in the script I also did not know what to put in at: MYSQL="$()" MYSQLDUMP="$()" GZIP="$()" So I just put my DB name in for the first two and .gz Syntax Error: Unterminated Quoted String Python Here is what my DB structure is along with which DB I want to backup: In my script I also did not know what to put in at: MYSQL="$()" MYSQLDUMP="$()" GZIP="$()"

Probably git version? % git --version git version 1.7.5.4 GitHub member mislav commented May 7, 2012 Probably doesn't have to do anything with git. http://onlinetvsoftware.net/syntax-error/awk-else-syntax-error.php NOW=$(date +"%d-%m-%Y") # We need to know the date 3 days ago to purge any backups that were made 3 days ago. # This ensures we don't keep unnecessarily old backups. Estimating error of linear approximation How could banks with multiple branches work in a world without quick communication? Join Date Nov 2008 Location Chile Beans 48 DistroUbuntu 11.10 Oneiric Ocelot [SOLVED]Getting "Syntax error: Unterminated quoted string" on execution. Makefile : Syntax Error: Unterminated Quoted String

badboy commented Jun 25, 2013 You should have nexer expected /bin/sh to be /bin/bash, as bash executed as sh will behave more like a fully-compatible POSIX-shell anyway (excluding some bash-specific things) tkf commented May 7, 2012 It's "GNU bash, version 4.2.10(1)-release (x86_64-pc-linux-gnu)". If so, paste us the stack trace. news Short science-fiction story about a guy stationed on a stranded planet and a Martian woman who accompanied him Is there a good way to get from Levoča to Lviv?

What aircraft would have these tail numbers? Syntax Error: Unterminated Quoted String Android tkf commented Apr 12, 2012 Thanks for checking. C compiler # 4.

Hi, I am using GNU bash ,version 4.2.8(1) - release (i686-pc-linux-gnu) ubuntu 11.04 I am trying to create a tar file for a directory.

Or dpkg -l dash (I can't check the right syntax). 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 rise to the Either run it with the -x option to get more debug information, or open the installer in an editor and look for unmatched pairs of quotes. Syntax Error: Unterminated Quoted String Eclipse How to pluralize "State of the Union" without an additional noun?

Try changing that line to: Code: SRCDIR=`echo "$0" | sed 's,[^/]*$,,'` Adv Reply March 12th, 2009 #3 VotaVader View Profile View Forum Posts Private Message Just Give Me the Beans! I'm trying to configure System/161 for OS/161 (the virtual machine for a study operating system for academical purposes). Reload to refresh your session. More about the author The only thing special about hub help hub that jumps out at me is its dependence on the groff command.

python shell share|improve this question edited Feb 17 '14 at 17:09 nisargshah95 355422 asked Aug 31 '13 at 3:12 maemual 1114 2 How are you executing this script? –Johnsyweb Aug Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. I've tried to install bash v4.2.10 but can't get it to compile without being broken at runtime. @tkf Can you try upgrading bash to patchlevel 45 to see if your problem I'm more surprised at the fact that they distributed it like that.

How much could a time traveler earn by selling a smartphone from 2016 in 2000? share|improve this answer edited Feb 7 '12 at 21:59 Matthew Simoneau 3,56052542 answered Mar 29 '11 at 14:36 bmk 9,29242135 1 Thanks very much. None of these answers worked for me because I think this is the x64 bit version and I was trying to install it on a 32bit Linux Mint. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 207 Star 9,213 Fork 834 github/hub Code Issues 110 Pull requests 18 Projects 0

You signed in with another tab or window. PS: One would think these Harvard guys would write good code... I've tried running it as root and as regular user. I also tried dpkg -l dash: % dpkg -l dash Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii dash 0.5.5.1-7.4ubu POSIX-compliant shell Blaisorblade commented Jun 25,

help!' rm -f __conf* exit 1 fi ############################################################ echo -n "Checking install directory... " if [ "x$INSTALLDIR" = x ]; then INSTALLDIR='$(HOME)/cs161/root' fi echo "$INSTALLDIR" echo -n "Checking config directory... " Example: #!/usr/bin/env bash #My demo installer! # echo "starting here!" echo "and an error in this line echo "We will never get here!" Notice the missing closing quote (") in the asked 3 years ago viewed 8935 times active 2 years ago Get the weekly newsletter! If this is your first visit, be sure to check out the FAQ by clicking the link above.

Moreover, the classic /bin/sh is not even POSIX conformant - $(command) is POSIX and even dash supports it, but the classical Bourne shell doesn't. I thought of that problem since you asked about bash and the error mentions sh. Browse other questions tagged python shell or ask your own question. Is there a way to make a metal sword resistant to lava?

Inverted question mark, plus its gender Exporting an animation as a gif file Why Gimbal Only Inner Cluster? The Woz Monitor Why did companions have such high social standing? asked 2 years ago viewed 23228 times active 7 months ago Related 0How do I solve this “unexpected '}' syntax error” in my bash script?0Syntax error on python 2.7.31Syntax Error while But today, it give me this error: sh: 1: Syntax error: Unterminated quoted string I don't know what happened.