[ 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)