[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16333634#comment-16333634 ] Keegan Witt commented on GROOVY-7906: - Actually, testing with 2.4.13 is passing event without cherry-picking these changes in. It looks like {{$\{BASH}}} is no longer set in Alpine. > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter Butkovic >Assignee: Daniel Sun >Priority: Major > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16333625#comment-16333625 ] Keegan Witt commented on GROOVY-7906: - I'll cherry pick these changes (as well as [87c68fba3b599238d5c900d8eb18975074fa926d|https://github.com/apache/groovy/commit/87c68fba3b599238d5c900d8eb18975074fa926d] and [92bd96fcdfe35e502987e1846715a08a45620db1|https://github.com/apache/groovy/commit/92bd96fcdfe35e502987e1846715a08a45620db1]) to the 2_4_X, 2_5_X, and 2_6_X branches. > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter Butkovic >Assignee: Daniel Sun >Priority: Major > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16183756#comment-16183756 ] Keegan Witt commented on GROOVY-7906: - Agreed. I left this issue open so we can do a more permanent fix. > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter Butkovic > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15994924#comment-15994924 ] Luca De Vitis commented on GROOVY-7906: --- These are all useful workaround, but I would like that we don't miss the real issue here. Bash syntax is kind of a super-set of the sh syntax: it is wrong for an sh script to source a bash script. Might be acceptable the other way around: however I wouldn't do that either. Just pick up one and stick with it. In fact, I think that "no bash, busybox only" is not correct. You can have bash on alpine, as long as you tell me that you need it. This problem is coming from the fact that many Linux distributions ship bash as an sh interpreter, but bash is not exactly sh compliant and that led to the misconception that sh and bash are so similar. > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter Butkovic > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15739338#comment-15739338 ] Keegan Witt commented on GROOVY-7906: - I'm working on creating some official Groovy Docker images and encountered the same issue. It'd be less intrusive to use Bash just for Groovy, while not affecting the rest of the environment. One way is to just change the shebangs: {code} RUN set -ex \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/grape \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/groovy \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/groovyc \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/groovyConsole \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/groovydoc \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/groovysh \ && sed -i -e "s|#!/bin/sh|#!/bin/bash|" /opt/groovy/bin/java2groovy {code} I mentioned the idea on the related mailing list [discussion|http://groovy.329449.n5.nabble.com/Groovy-Docker-images-td5735270.html]. > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter Butkovic > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15739059#comment-15739059 ] Keegan Witt commented on GROOVY-7906: - So should we change the shebangs to be bash? > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter Butkovic > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433289#comment-15433289 ] Serge commented on GROOVY-7906: --- Ok as a workaround i've added in my dockerfile {code} RUN rm /bin/sh && ln -s /bin/bash /bin/sh {code} And thereafter, groovy can starts. It is indeed related to the fact that the groovy shells are using /bin/sh, and in an alpine installation, /bin/sh is a symbolic link to /bin/busybox. > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433254#comment-15433254 ] John Wagenleitner commented on GROOVY-7906: --- Looks like Alpine's default shell {{ash}} pre-processes substitutions even for code it wont exec. Possibly similar to (https://github.com/ansible/ansible/issues/17011) and their fix was to wrap in an {{eval}} (https://github.com/ansible/ansible/pull/17054/files). > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432875#comment-15432875 ] Serge commented on GROOVY-7906: --- Sure, here's the sum of my dockerfiles (internal images). One layer used as a base from alpine. One layer adding JDK8 One layer adding groovy. {quote} # Layer 1 - base FROMalpine:3.4 ENV TIMEZONE Europe/Paris ENV LANG fr_FR.UTF-8 ENV LANGUAGE fr_FR.UTF-8 ENV LC_ALL fr_FR.UTF-8 ENV HOME /root ENV TERM xterm # Insert bashrc ADD bashrc /root/.bashrc RUN apk add --update bash tzdata RUN echo $TIMEZONE > /etc/timezone && \ cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime RUN apk del tzdata && rm -rf /var/cache/apk/* # Layer 2 - base + java # Install cURL ENV GLIBC_VERSION 2.23-r3 ENV GLIBC_URL https://github.com/sgerrand/alpine-pkg-glibc/releases/download/unreleased RUN apk --no-cache --update add curl ca-certificates tar && \ echo "${GLIBC_URL}/glibc-${GLIBC_VERSION}.apk" && \ curl -sLo /tmp/glibc-${GLIBC_VERSION}.apk ${GLIBC_URL}/glibc-${GLIBC_VERSION}.apk && \ curl -sLo /tmp/glibc-bin-${GLIBC_VERSION}.apk ${GLIBC_URL}/glibc-bin-${GLIBC_VERSION}.apk && \ curl -sLo /tmp/glibc-i18n-${GLIBC_VERSION}.apk ${GLIBC_URL}/glibc-i18n-${GLIBC_VERSION}.apk && \ apk add --no-cache --allow-untrusted /tmp/glibc-${GLIBC_VERSION}.apk /tmp/glibc-bin-${GLIBC_VERSION}.apk /tmp/glibc-i18n-${GLIBC_VERSION}.apk && \ /usr/glibc-compat/bin/localedef -i fr_FR -f UTF-8 fr_FR.UTF-8 # Java Version ENV JAVA_VERSION_MAJOR 8 ENV JAVA_VERSION_MINOR 102 ENV JAVA_VERSION_BUILD 14 ENV JAVA_PACKAGE jdk # Download and unarchive Java RUN mkdir /opt && curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie"\ http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz \ | tar -xzf - -C /opt &&\ echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ ln -s /opt/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} /opt/jdk &&\ rm -rf /opt/jdk/*src.zip \ /opt/jdk/lib/missioncontrol \ /opt/jdk/lib/visualvm \ /opt/jdk/lib/*javafx* \ /opt/jdk/jre/lib/plugin.jar \ /opt/jdk/jre/lib/ext/jfxrt.jar \ /opt/jdk/jre/bin/javaws \ /opt/jdk/jre/lib/javaws.jar \ /opt/jdk/jre/lib/desktop \ /opt/jdk/jre/plugin \ /opt/jdk/jre/lib/deploy* \ /opt/jdk/jre/lib/*javafx* \ /opt/jdk/jre/lib/*jfx* \ /opt/jdk/jre/lib/amd64/libdecora_sse.so \ /opt/jdk/jre/lib/amd64/libprism_*.so \ /opt/jdk/jre/lib/amd64/libfxplugins.so \ /opt/jdk/jre/lib/amd64/libglass.so \ /opt/jdk/jre/lib/amd64/libgstreamer-lite.so \ /opt/jdk/jre/lib/amd64/libjavafx*.so \ /opt/jdk/jre/lib/amd64/libjfx*.so && \ rm -rf /opt/jdk/jre/bin/jjs \ /opt/jdk/jre/bin/keytool \ /opt/jdk/jre/bin/orbd \ /opt/jdk/jre/bin/pack200 \ /opt/jdk/jre/bin/policytool \ /opt/jdk/jre/bin/rmid \ /opt/jdk/jre/bin/rmiregistry \ /opt/jdk/jre/bin/servertool \ /opt/jdk/jre/bin/tnameserv \ /opt/jdk/jre/bin/unpack200 \ /opt/jdk/jre/lib/ext/nashorn.jar \ /opt/jdk/jre/lib/jfr.jar \ /opt/jdk/jre/lib/jfr \ /opt/jdk/jre/lib/oblique-fonts # Set environment ENV JAVA_HOME /opt/jdk ENV PATH ${PATH}:${JAVA_HOME}/bin # Layer 3 - groovy WORKDIR /opt/ ENV GROOVY_HOME /opt/groovy/ ENV PATH ${PATH}:${GROOVY_HOME}/bin ENV GROOVY_VERSION 2.4.7 RUN apk --update add curl unzip && \ curl -sLo /opt/groovy.zip https://bintray.com/artifact/download/groovy/maven/apache-groovy-binary-${GROOVY_VERSION}.zip && \ unzip /opt/groovy.zip && \ rm -f /opt/groovy.zip && \ ln -s /opt/groovy-${GROOVY_VERSION} /opt/groovy {quote} > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432851#comment-15432851 ] John Wagenleitner commented on GROOVY-7906: --- If possible could you share your Dockerfile or, if a public image, at least what the FROM is using? > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432614#comment-15432614 ] Serge commented on GROOVY-7906: --- Exact same problem for me, running (or willing to run) groovy inside a docker container based on alpine, same error. My envs are out of the box : {quote} [ root@c4e4ab3a291b:/opt/groovy/bin ]$ echo $BASH /bin/bash [ root@c4e4ab3a291b:/opt/groovy/bin ]$ uname Linux [ root@c4e4ab3a291b:/opt/groovy/bin ]$ uname -a Linux c4e4ab3a291b 4.4.16-1-lts #1 SMP Thu Jul 28 16:21:18 CEST 2016 x86_64 Linux {quote} > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427724#comment-15427724 ] Jochen Theodorou commented on GROOVY-7906: -- what I would like to know is actually why in busybox $BASH is set. The failure happens because the script assumes $BASH is set only if the shell is bash. And according to the description the shell is not bash > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427530#comment-15427530 ] John Wagenleitner commented on GROOVY-7906: --- I believe that will delete lines 274 through 275 from the file: https://github.com/apache/groovy/blob/042950dc23257bbc65cd2258f2fd2a197a98f802/src/bin/startGroovy#L274-L275 What is odd is that it should only execute those lines if cygwin is detected, but at least on Alpine 3.4.3 the {{`uname`}} command returns just "Linux" for me. Would be interested to know what it returns for you [~typek_pb] > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (GROOVY-7906) groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution
[ https://issues.apache.org/jira/browse/GROOVY-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420275#comment-15420275 ] Jochen Theodorou commented on GROOVY-7906: -- for those not so familiar with sed, like me: what do you actually replace? > groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > -- > > Key: GROOVY-7906 > URL: https://issues.apache.org/jira/browse/GROOVY-7906 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.7 > Environment: Alpine linux (=> no bash, busybox only) >Reporter: Peter B. > > running groovy in alpine linux results in: > {code} > /tmp/groovy-2.4.7/bin/startGroovy: line 275: syntax error: bad substitution > {code} > as a workaround I'm running: > {code} > sed -ie '274,275d' /tmp/groovy-2.4.7/bin/startGroovy > {code} > prior to invoking groovy -- This message was sent by Atlassian JIRA (v6.3.4#6332)