On 2010-03-17 22:57+0100 Michael Wild wrote:
I just tried a few things, and it seems that you can use eval to your advantage:
project(test C)
add_custom_command(OUTPUT bla.stderr bla.stdout
COMMAND eval
"((echo 'this is stdout'; echo 'this is stderr' >&2) > bla.stdout) 2>
bla.stderr"
VERB
On 17. Mar, 2010, at 21:46 , Alan W. Irwin wrote:
> On 2010-03-17 20:21+0100 Michael Wild wrote:
>
>> Thing is, cmake is neither bash nor ksh, else it would be called cash ;-)
>
> True, but COMMAND does execute a command on the command line, and on the
> Unix side of things that must involve th
On 2010-03-17 20:21+0100 Michael Wild wrote:
Thing is, cmake is neither bash nor ksh, else it would be called cash ;-)
True, but COMMAND does execute a command on the command line, and on the
Unix side of things that must involve the shell. To confirm that, note that
the Makefiles generated b
On 17. Mar, 2010, at 18:42 , Alan W. Irwin wrote:
> According to "Unix in a Nutshell", the bourne and korn shells use the
> following method of splitting stderr and stdout into two separate
> files.
>
> (cmd >f1) 2>f2
>
> I have checked that the parentheses work for bash, although they are not
On 2010-03-17 13:46-0400 David Cole wrote:
If you must run a script verbatim, then write a script.
Then have cmake just execute the script.
My use case is I plan to have about 100 custom commands in my FreeEOS test
suite, and they all need their stderr split from stdout. I guess the silver
li
If you must run a script verbatim, then write a script.
Then have cmake just execute the script.
On Wed, Mar 17, 2010 at 1:42 PM, Alan W. Irwin wrote:
> According to "Unix in a Nutshell", the bourne and korn shells use the
> following method of splitting stderr and stdout into two separate
> fi
According to "Unix in a Nutshell", the bourne and korn shells use the
following method of splitting stderr and stdout into two separate
files.
(cmd >f1) 2>f2
I have checked that the parentheses work for bash, although they are not
necessary. Therefore, the above seems to be a good candidate for