svn commit: trunk/uClibc/test

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Thu Oct 2 13:34:19 UTC 2008


On Thu,  2 Oct 2008 05:54:44 -0700 (PDT)
egtvedt at uclibc.org wrote:

> Author: egtvedt
> Date: 2008-10-02 05:54:43 -0700 (Thu, 02 Oct 2008)
> New Revision: 23574
> 
> Log:
> Use more generic redirecting of output in the test suite
> 
> This patch replaces the "&> file" with "> file 2>> file". The latter
> is compatible with Busybox ash shell, which makes it easier to run
> the test suite on target.
> 

Hmmm, patch is wrong, stderr is not added to output file.

The problem still persists, could we remove the bash specific usage of
io redirection?

Test case:
 ~ > (echo out1; echo err >&2; echo out2) 2>&1 > foo
 ~ > cat foo 
out1
err
out2
 ~ >

Will this do?
(echo out1; echo err >&2; echo out2) >> foo 2>> foo

Is it always legal to assume that >> <non existing file> is allowed?
IIRC some systems bark on trying to append to an non existing file.

<snipp bad patch>

-- 
Best regards,
Hans-Christian Egtvedt



More information about the uClibc-cvs mailing list