Re: Help with exit status in shell script

1999-08-28 Thread Luigi Rizzo
> 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 >

Re: Help with exit status in shell script

1999-08-28 Thread Luigi Rizzo
> 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 >

Re: Help with exit status in shell script

1999-08-28 Thread Ben Smithurst
Roger Hardiman wrote: > Build calls Stage1. Stage1 will return with an error code in some cases > and we want to trap this and halt the Build script. > >./stage1 2>&1 | tee stage1.out > if [ "X$?" != "X0" ] ; then > > Normally, $? will return the Exit Status of the last executed program

Re: Help with exit status in shell script

1999-08-28 Thread Ben Smithurst
Roger Hardiman wrote: > Build calls Stage1. Stage1 will return with an error code in some cases > and we want to trap this and halt the Build script. > >./stage1 2>&1 | tee stage1.out > if [ "X$?" != "X0" ] ; then > > Normally, $? will return the Exit Status of the last executed progra

Re: Help with exit status in shell script

1999-08-28 Thread Oliver Fromme
Roger Hardiman wrote in list.freebsd-hackers: > 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 fr

Re: Help with exit status in shell script

1999-08-28 Thread Oliver Fromme
Roger Hardiman wrote in list.freebsd-hackers: > 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 f

Help with exit status in shell script

1999-08-28 Thread Roger Hardiman
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

Help with exit status in shell script

1999-08-28 Thread Roger Hardiman
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