Hi guys,

 

I am trying to capture output of a shell command in local variable to be used in a <define> later on. However I am running into some trouble, specifically that a line feed is also captured:

 

local MY_LOCAL = [ SHELL "echo test" ] ;

echo "before$(MY_LOCAL)after" ;

 

It yields this output:

 

beforetest

after

 

Where I was hoping for:

 

beforetestafter

 

Is it expected that a line feed is captured in the local variable? Have tried with piping into “head -1” etc.

 

Any helpful pointers appreciated.

 

Best regards,

Martin Dyring-Andersen