> Hi, > There is a bug in the PicoBSD build shell script in and I have no idea > how to fix it. As a result, build errors are not caught. > It is all to do with Exit Status of programs called from a shell script. > Please help. > > The code fragment from /usr/src/release/picobsd/build/build is > ./stage1 2>&1 | tee stage1.out
given that there is, in the same script, a "fail" procedure to handle such cases, i believe you could do something like (./stage1 2>&1 || fail $? stage1_failed ) | tee stage1.out (where the $? has nothing special, just that the "fail" procedre expects the errcode as first argument). If it turns out to be problematic, for 3.3R you could as well remove the "tee", after all it was just there for debugging. cheers luigi To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message