Boost logo

Boost-Build :

Subject: Re: [Boost-build] Unexpected line feed when capturing shell output
From: Schrom, Brian T (Brian.Schrom_at_[hidden])
Date: 2015-09-19 17:26:10


On 9/19/15 2:21 PM, Martin Dyring-Andersen wrote:
> > 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" ; >

Maybe try:

local MY_LOCAL = [ SHELL "echo -n test" ] ;



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk