77# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88# Portions Copyright (c) 1994, Regents of the University of California
99#
10- # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.17 2001/09/22 04:28:12 momjian Exp $
10+ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.18 2001/09/30 22:17:51 momjian Exp $
1111#
1212# -------------------------------------------------------------------------
1313
3636# ----------
3737# Get options, language name and dbname
3838# ----------
39- while [$# -gt 0 ]
39+ while [" $# " -gt 0 ]
4040do
4141case " $1 " in
4242--help|-\? )
@@ -168,7 +168,7 @@ if [ "$showsql" = yes ]; then
168168echo " $sqlcmd "
169169fi
170170lanplcallfoid=` $PSQL " $sqlcmd " `
171- if [$? -ne 0 ]; then
171+ if [" $? " -ne 0 ]; then
172172echo " $CMDNAME : external error" 1>&2
173173exit 1
174174fi
@@ -186,13 +186,13 @@ if [ "$showsql" = yes ]; then
186186echo " $sqlcmd "
187187fi
188188res=` $PSQL " $sqlcmd " `
189- if [$? -ne 0 ]; then
189+ if [" $? " -ne 0 ]; then
190190echo " $CMDNAME : external error" 1>&2
191191exit 1
192192fi
193193if [" $res " -ne 0 ]; then
194194echo " $CMDNAME : There are$res functions/trigger procedures declared in language" 1>&2
195- echo " $langname . Language not removed." 1>&2
195+ echo " $langname . Language not removed." 1>&2
196196exit 1
197197fi
198198
@@ -204,7 +204,7 @@ if [ "$showsql" = yes ]; then
204204echo " $sqlcmd "
205205fi
206206res=` $PSQL " $sqlcmd " `
207- if [$? -ne 0 ]; then
207+ if [" $? " -ne 0 ]; then
208208echo " $CMDNAME : external error" 1>&2
209209exit 1
210210fi
@@ -222,7 +222,7 @@ if [ "$showsql" = yes ]; then
222222echo " $sqlcmd "
223223fi
224224$PSQL " $sqlcmd "
225- if [$? -ne 0 ]; then
225+ if [" $? " -ne 0 ]; then
226226echo " $CMDNAME : language removal failed" 1>&2
227227exit 1
228228fi
@@ -239,7 +239,7 @@ if [ "$showsql" = yes ]; then
239239echo " $sqlcmd "
240240fi
241241handler=` $PSQL " $sqlcmd " `
242- if [$? -ne 0 ]; then
242+ if [" $? " -ne 0 ]; then
243243echo " $CMDNAME : external error" 1>&2
244244exit 1
245245fi
@@ -249,7 +249,7 @@ if [ "$showsql" = yes ]; then
249249echo " $sqlcmd "
250250fi
251251$PSQL " $sqlcmd "
252- if [$? -ne 0 ]; then
252+ if [" $? " -ne 0 ]; then
253253echo " $CMDNAME : language removal failed" 1>&2
254254exit 1
255255fi