From: Bruce Momjian Date: Tue, 22 May 2001 12:06:51 +0000 (+0000) Subject: The Watcom preprocessor adds a space at the start of each line. Therefore X-Git-Tag: REL7_2_BETA1~1213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b62a714dcac476f5a051557929ab04caf2faff9;p=postgresql The Watcom preprocessor adds a space at the start of each line. Therefore the output of "egrep '^[0-9]' " is empty. Changing the pattern to "egrep '^[ ]*[0-9]" generates the correct file. Tegge, Bernd --- diff --git a/src/backend/utils/Gen_fmgrtab.sh b/src/backend/utils/Gen_fmgrtab.sh index 14e1315538..cf649ff3cd 100644 --- a/src/backend/utils/Gen_fmgrtab.sh +++ b/src/backend/utils/Gen_fmgrtab.sh @@ -9,7 +9,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.19 2001/01/24 19:43:12 momjian Exp $ +# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.20 2001/05/22 12:06:51 momjian Exp $ # #------------------------------------------------------------------------- @@ -108,7 +108,7 @@ if [ $? -ne 0 ]; then fi $CPP $BKIOPTS $CPPTMPFILE | \ -egrep '^[0-9]' | \ +egrep '^[ ]*[0-9]' | \ sort -n > $RAWFILE if [ $? -ne 0 ]; then