From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: bug in PG_VERSION_NUM patch |
Date: | 2006-02-28 21:58:21 |
Message-ID: | 200602282158.k1SLwLS24250@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> cvs tip configure is giving a warning:
>
> checking for flags to link embedded Perl... /usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
> gawk: warning: escape sequence `\.' treated as plain `.'
> checking for library containing setproctitle... no
>
> Evidently gawk is not happy about
>
> $AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
OK, I reread the manual page:
As each input record is read, gawk splits the record into
fields, using the value of the FS variable as the field
separator. If FS is a single character, fields are sepa-
rated by that character. If FS is the null string, then
each individual character becomes a separate field. Oth-
erwise, FS is expected to be a full regular expression.
Turns out -F is a regex only if it is more than one character. Fixed by
changing it to '.'. Applied.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2006-02-28 22:10:52 | Re: Automatic free space map filling |
Previous Message | Tom Lane | 2006-02-28 21:36:44 | bug in PG_VERSION_NUM patch |