pallassgj / bpipe

Automatically exported from code.google.com/p/bpipe
0 stars 1 forks source link

using() does not work with segment #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
"The segment then behaves just like a normal pipeline stage itself."

Not quite.

I want this script to work:

stage_one = {
    println a;
}

stage_two = {
    println a;
}

one_two = segment {
    stage_one.using(a: b) + stage_two.using(a: "world")
}

Bpipe.run {
    one_two.using(b: "hello")
}

- - -

Pipeline Failed!

A variable referred to in your script on line 9, 'b' was not defined.  

Please check that all pipeline stages or other variables you have referenced by 
this name are defined.

Original issue reported on code.google.com by kslowiko...@gmail.com on 20 Nov 2012 at 3:10