c49e6c
--- docbook-utils-0.6.14/bin/jw.in.spaces	2003-04-30 17:21:49.000000000 +0100
c49e6c
+++ docbook-utils-0.6.14/bin/jw.in	2004-08-19 09:33:34.989426640 +0100
c49e6c
@@ -405,9 +405,9 @@
c49e6c
   echo -e $SGML_HELP_MESSAGE >&2
c49e6c
   exit 1
c49e6c
 fi
c49e6c
-if [ ! -d $SGML_OUTPUT_DIRECTORY ]
c49e6c
+if [ ! -d "$SGML_OUTPUT_DIRECTORY" ]
c49e6c
 then
c49e6c
-  mkdir $SGML_OUTPUT_DIRECTORY 2>/dev/null
c49e6c
+  mkdir "$SGML_OUTPUT_DIRECTORY" 2>/dev/null
c49e6c
   if [ $? -ne 0 ]
c49e6c
   then
c49e6c
     echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2
c49e6c
@@ -422,7 +422,7 @@
c49e6c
 echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`"
c49e6c
 echo "Using stylesheet: $SGML_STYLESHEET"
c49e6c
 echo "Working on: $SGML_FILE"
c49e6c
-cd $SGML_OUTPUT_DIRECTORY
c49e6c
+cd "$SGML_OUTPUT_DIRECTORY"
c49e6c
 export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS
c49e6c
 export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET
c49e6c
 NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks`
c49e6c
@@ -433,7 +433,7 @@
c49e6c
 	sh $SGML_BACKEND >$SGML_FILE_NAME.html
c49e6c
 fi
c49e6c
 SGML_RETURN=$?
c49e6c
-cd $SGML_CURRENT_DIRECTORY
c49e6c
+cd "$SGML_CURRENT_DIRECTORY"
c49e6c
 
c49e6c
 if [ $SGML_RETURN -gt 0 ]
c49e6c
 then exit `expr 7 + $SGML_RETURN`