Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dbf05a1

Browse files
committed
Avoid portability problem introduced in 0a42a2e.
Apparently not all shells handle nested quotes quite the same. But we don't need the inner double quotes in this case, so just drop them. Discussion: https://postgr.es/m/50ecb345-4dc5-1f7d-64ca-7018195fcc8d@2ndquadrant.com
1 parent d01f03a commit dbf05a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -18887,7 +18887,7 @@ _ACEOF
1888718887

1888818888
# Supply a numeric version string for use by 3rd party add-ons
1888918889
# awk -F is a regex on some platforms, and not on others, so make "." a tab
18890-
PG_VERSION_NUM="`echo "$PG_MAJORVERSION $PG_MINORVERSION" |
18890+
PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION |
1889118891
$AWK '{printf "%d%04d", $1, $2}'`"
1889218892

1889318893
cat >>confdefs.h <<_ACEOF

configure.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ AC_DEFINE_UNQUOTED(PG_VERSION_STR,
23222322

23232323
# Supply a numeric version string for use by 3rd party add-ons
23242324
# awk -F is a regex on some platforms, and not on others, so make "." a tab
2325-
[PG_VERSION_NUM="`echo "$PG_MAJORVERSION $PG_MINORVERSION" |
2325+
[PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION |
23262326
$AWK '{printf "%d%04d", $1, $2}'`"]
23272327
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
23282328
AC_SUBST(PG_VERSION_NUM)

0 commit comments

Comments
 (0)