aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2000-02-06 00:49:03 +0000
committerTatsuo Ishii <ishii@postgresql.org>2000-02-06 00:49:03 +0000
commit418b270020de20086042d7595dfe7d941b038716 (patch)
treea51a5b1b9cfd30e954791c1215ee6340bd288941
parent60be6da7310ba5bc1bd3c03d25f5d5992bf96d0f (diff)
downloadpostgresql-418b270020de20086042d7595dfe7d941b038716.tar.gz
postgresql-418b270020de20086042d7595dfe7d941b038716.zip
Fix a bug when specfying -D option.
fix suggested by Keith Parks.
-rwxr-xr-xsrc/bin/pg_ctl/pg_ctl.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.sh b/src/bin/pg_ctl/pg_ctl.sh
index 9de6eb3ab8c..a044622c06a 100755
--- a/src/bin/pg_ctl/pg_ctl.sh
+++ b/src/bin/pg_ctl/pg_ctl.sh
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.7 2000/01/23 08:20:24 ishii Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.8 2000/02/06 00:49:03 ishii Exp $
#
#-------------------------------------------------------------------------
CMDNAME=`basename $0`
@@ -76,6 +76,7 @@ do
-D)
shift
PGDATA="$1"
+ export PGDATA
;;
-p)
shift