On 09/02/2010 07:40, rolandc wrote:
> for example:
> cygport file.cygport almostall
> Suppose the source files contain some error. Normaly, cygport must
> stop on "compile stage" but it try to make install& package stage
>
> in the cygport bash script :
> ...
> compile|build|make)
> __stage Compiling;
> src_compile 2>&1 | tee ${compilelog};
> _status=$?;
>
> _status hold the 'last error', but in this case, $? contains the
> return code from tee instead of src_compile, also the value of _status
> is always 0
>
> could you confirm this problem ?
Yes, it's a known issue. AFAIK the fix is to use PIPESTATUS, but I
haven't got around to implementing that yet.
Yaakov
Cygwin Ports
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general