Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2002-04-12 09:37:11 +0000
committerBruce Momjian2002-04-12 09:37:11 +0000
commit5804a7ce3e210cfd3f7ac1cce693a47004c7a00c (patch)
tree3a460724318f04528e07e6b532c8815f6e90bf49 /src/bin/scripts/createdb
parent5129e1bde6df1a7d96dfc3532909234d8ae27795 (diff)
Allow dropdb and others to use identifiers with spaces; IFS cleanup for
pg_dumpall.
Diffstat (limited to 'src/bin/scripts/createdb')
-rw-r--r--src/bin/scripts/createdb10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/scripts/createdb b/src/bin/scripts/createdb
index 52d734178dc..91d544f9e00 100644
--- a/src/bin/scripts/createdb
+++ b/src/bin/scripts/createdb
@@ -12,12 +12,12 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.20 2002/02/24 23:27:58 tgl Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.21 2002/04/12 09:37:10 momjian Exp $
#
#-------------------------------------------------------------------------
CMDNAME=`basename "$0"`
-PATHNAME=`echo $0 | sed "s,$CMDNAME\$,,"`
+PATHNAME=`echo "$0" | sed "s,$CMDNAME\$,,"`
MB=
TEMPLATE=
@@ -42,7 +42,7 @@ do
PSQLOPT="$PSQLOPT $1"
;;
--host=*)
- PSQLOPT="$PSQLOPT -h "`echo $1 | sed 's/^--host=//'`
+ PSQLOPT="$PSQLOPT -h `echo \"$1\" | sed 's/^--host=//'`"
;;
--port|-p)
PSQLOPT="$PSQLOPT -p $2"
@@ -51,7 +51,7 @@ do
PSQLOPT="$PSQLOPT $1"
;;
--port=*)
- PSQLOPT="$PSQLOPT -p "`echo $1 | sed 's/^--port=//'`
+ PSQLOPT="$PSQLOPT -p `echo \"$1\" | sed 's/^--port=//'`"
;;
--username|-U)
PSQLOPT="$PSQLOPT -U $2"
@@ -60,7 +60,7 @@ do
PSQLOPT="$PSQLOPT $1"
;;
--username=*)
- PSQLOPT="$PSQLOPT -U "`echo $1 | sed 's/^--username=//'`
+ PSQLOPT="$PSQLOPT -U `echo \"$1\" | sed 's/^--username=//'`"
;;
--password|-W)
PSQLOPT="$PSQLOPT -W"