www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@ihgp.ih.lucent.com
Subject Re: config/2319: last awk script in configure breaks with braindead awks
Date Mon, 08 Jun 1998 16:06:18 GMT
On May 29,  8:47pm, rse@apache.org wrote:
> Synopsis: last awk script in configure breaks with braindead awks
> 
> State-Changed-From-To: open-closed
> State-Changed-By: rse
> State-Changed-When: Fri May 29 13:47:56 PDT 1998
> State-Changed-Why:
> Thanks for your report. Your patch was enhanced by
> me to also try GNU awk (gawk) and was comitted to
> the Apache source repository now. It occurs in
> Apache 1.3. Thanks.

(NOTE: I was going to submit a new bug report on this but my web browser
says there's no DNS entry for bugs.apache.org this morning (or
dev.apache.org for that matter)).

Oh oh, this has now been done incorrectly.  Sometime in the last three 3
days a program "findprg.sh" has been introduced into the 1.3.1 snapshot.
It doesn't behave as expected.  When findprg.sh looks for "nawk gawk awk"
but it finds awk in the PATH before nawk, it uses awk.  Below is a possible
fix (change the ordering of the loops).

- Dave Dykstra


*** findprg.sh.O	Mon Jun  8 10:48:09 1998
--- findprg.sh	Mon Jun  8 10:49:55 1998
***************
*** 43,56 ****
  fi
  rm -f $testfile
  
! #   iterate over paths
! for path in `echo $pathlist |\
!              sed -e 's/^:/.:/' \
!                  -e 's/::/:.:/g' \
!                  -e 's/:$/:./' \
!                  -e 's/:/ /g'`; do
!     #   iterate over names
!     for name in $namelist; do
          if [ $minusx "$path/$name" ] && [ ! -d "$path/$name" ]; then
              if [ "$silent" != "yes" ]; then
                  echo "$path/$name"
--- 43,57 ----
  fi
  rm -f $testfile
  
! paths="`echo $pathlist |\
! 	 sed -e 's/^:/.:/' \
! 	     -e 's/::/:.:/g' \
! 	     -e 's/:$/:./' \
! 	     -e 's/:/ /g'`"
! #   iterate over names
! for name in $namelist; do
!     #   iterate over paths
!     for path in $paths; do
          if [ $minusx "$path/$name" ] && [ ! -d "$path/$name" ]; then
              if [ "$silent" != "yes" ]; then
                  echo "$path/$name"

Mime
View raw message