Skip to content

Commit 1d84088

Browse files
author
Bryan Henderson
committed
Go back to $(postconfig...) from $(exec postconfig...) so it works on non-bash.
1 parent 6c2925b commit 1d84088

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bin/initdb/initdb.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.15 1996/11/23 09:42:51 bryanh Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.16 1996/11/25 05:51:50 bryanh Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -49,8 +49,10 @@ CMDNAME=`basename $0`
4949
# our invocation of it silently fails.
5050

5151
# The x=x below is to satisfy export if postconfig returns nothing.
52+
# The 2>/dev/null is to swallow the "postconfig: not found" message if there
53+
# is not postconfig, but it is ineffective in some shells. Better ideas?
5254

53-
export x=x $(exec postconfig 2>/dev/null)
55+
export x=x $(postconfig 2>/dev/null)
5456

5557
# Set defaults:
5658
debug=0

0 commit comments

Comments
 (0)