What steps will reproduce the problem?
1. module1 = { exec """ array=(a b c); var=1; echo "The array element is
${array[$var]}" """ }
Bpipe.run { module1 }
What is the expected output? What do you see instead?
The expected output is "The array element is b" but it reports error
========================================== Stage module1
==========================================
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128)
Caused by: groovy.lang.MissingPropertyException: No such property: $$var for
class: java.lang.String
...
What version of the product are you using? On what operating system?
bpipe 0.9.8. Fedora 18
Please provide any additional information below.
The question is how to escape properly bash arrays in bpipe?
Original issue reported on code.google.com by mcastr...@gmail.com on 30 Apr 2013 at 10:10
Original issue reported on code.google.com by
mcastr...@gmail.com
on 30 Apr 2013 at 10:10