|
Boost-Build : |
From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-01-27 19:46:59
On Jan 27, 2006, at 1:06 PM, Rene Rivera wrote:
> Once upon a time there was a request to change the SHELL builtin to be
> able to get the result code of the command run. At the time I pointed
> out the problem of having to return 2 values, the captured output and
> the result code, which would break existing uses. This morning I
> had an
> idea that would allow us to have the result code but still maintain
> compatibility. I'm proposing we change the rule to be:
>
> SHELL ( command : * )
>
> Where options would allow for specifying an "exit-status" option to
> also
> return the wanted status. This would also allow for future
> expansion for
> example to allow "no-output" (don't capture output just run), and
> "input" (to feed strings into the command).
>
> Thoughts?
That would be great. Actually, it also gives us a place to specify
what should be done with output that goes to standard error (now, it
just leaks out to the terminal).
Doug
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