Pier Fumagalli wrote:
> 
> Quoting jean-frederic clere <[EMAIL PROTECTED]>:
> 
> > "Pier P. Fumagalli" wrote:
> > >
> > > Hmm.... If you do an exit $ret, it'll kill the whole ./configure
> > > process with some bourne shells... Will check it...
> >
> > Oop, I have just found one, on BS2000!
> 
> And OS/X... It seems to me that the only case in which that would work is
> when the script is executed by BASH, that forks the second part of the pipe
> into another process, but if it's interactive, we're screwed :)

What about this:
+++
Index: configure.in                                                             
===================================================================             
RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/configure.in,v             
retrieving revision 1.10                                                        
diff -u -r1.10 configure.in                                                     
--- configure.in        2001/07/09 14:09:16     1.10                            
+++ configure.in        2001/07/09 15:38:33                                     
@@ -98,9 +98,9 @@                                                               
     done                                                                       
     unset first                                                                
     unset line                                                                 
-    exit $ret                                                                  
+    echo $ret > retfile                                                        
   }                                                                            
-  ret=$?                                                                       
+  ret=`cat retfile`                                                            
 ])                                                                             
                                                                                
 dnl -------------------------------------------------------------------------- 
+++

>
>     Pier

Reply via email to