]> granicus.if.org Git - postgresql/commitdiff
Go back to $(postconfig...) from $(exec postconfig...) so it works on non-bash.
authorBryan Henderson <bryanh@giraffe.netgate.net>
Mon, 25 Nov 1996 05:51:50 +0000 (05:51 +0000)
committerBryan Henderson <bryanh@giraffe.netgate.net>
Mon, 25 Nov 1996 05:51:50 +0000 (05:51 +0000)
src/bin/initdb/initdb.sh

index b08c8f9786b083e189a08172018101f49394ba6f..2cd8bdcac4e9cff1cdd899df7c236de8982e95a3 100644 (file)
@@ -26,7 +26,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.15 1996/11/23 09:42:51 bryanh Exp $
+#    $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.16 1996/11/25 05:51:50 bryanh Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -49,8 +49,10 @@ CMDNAME=`basename $0`
 # our invocation of it silently fails.
 
 # The x=x below is to satisfy export if postconfig returns nothing.
+# The 2>/dev/null is to swallow the "postconfig: not found" message if there
+# is not postconfig, but it is ineffective in some shells.  Better ideas?
 
-export x=x $(exec postconfig 2>/dev/null)
+export x=x $(postconfig 2>/dev/null)
 
 # Set defaults:
 debug=0