b61942
--- xmlto-0.0.18/format/docbook/fo.basename	2005-08-08 14:00:24.000000000 +0100
b61942
+++ xmlto-0.0.18/format/docbook/fo	2005-08-08 14:01:13.000000000 +0100
b61942
@@ -7,6 +7,6 @@
b61942
   echo "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
b61942
   ;;
b61942
 post-process)
b61942
-  cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).fo"
b61942
+  cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").fo"
b61942
   ;;
b61942
 esac
b61942
--- xmlto-0.0.18/format/docbook/html-nochunks.basename	2005-08-08 14:01:39.000000000 +0100
b61942
+++ xmlto-0.0.18/format/docbook/html-nochunks	2005-08-08 14:01:49.000000000 +0100
b61942
@@ -7,6 +7,6 @@
b61942
   echo "http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"
b61942
   ;;
b61942
 post-process)
b61942
-  cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).html"
b61942
+  cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").html"
b61942
   ;;
b61942
 esac
b61942
--- xmlto-0.0.18/format/docbook/txt.basename	2005-08-08 14:02:16.000000000 +0100
b61942
+++ xmlto-0.0.18/format/docbook/txt	2005-08-08 14:02:26.000000000 +0100
b61942
@@ -29,6 +29,6 @@
b61942
     echo >&2 "Convert HTML to ASCII"
b61942
   fi
b61942
   ${CONVERT} ${ARGS} ${POSTARGS} ${XSLT_PROCESSED} > \
b61942
-   "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).txt"
b61942
+   "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").txt"
b61942
   ;;
b61942
 esac
b61942
--- xmlto-0.0.18/format/fo/dvi.basename	2005-08-08 14:02:39.000000000 +0100
b61942
+++ xmlto-0.0.18/format/fo/dvi	2005-08-08 14:02:48.000000000 +0100
b61942
@@ -29,6 +29,6 @@
b61942
       [ "$VERBOSE" -ge 3 ] && cat $OUT
b61942
     fi
b61942
   fi
b61942
-  cp -- *.dvi "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).dvi"
b61942
+  cp -- *.dvi "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").dvi"
b61942
   ;;
b61942
 esac
b61942
--- xmlto-0.0.18/format/fo/pdf.basename	2005-08-08 14:03:01.000000000 +0100
b61942
+++ xmlto-0.0.18/format/fo/pdf	2005-08-08 14:03:08.000000000 +0100
b61942
@@ -29,6 +29,6 @@
b61942
       [ "$VERBOSE" -ge 3 ] && cat $OUT
b61942
     fi
b61942
   fi
b61942
-  cp -- *.pdf "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).pdf"
b61942
+  cp -- *.pdf "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").pdf"
b61942
   ;;
b61942
 esac
b61942
--- xmlto-0.0.18/format/fo/ps.basename	2005-08-08 14:03:14.000000000 +0100
b61942
+++ xmlto-0.0.18/format/fo/ps	2005-08-08 14:03:23.000000000 +0100
b61942
@@ -33,6 +33,6 @@
b61942
   then
b61942
     echo >&2 "Post-process DVI to PS"
b61942
   fi
b61942
-  dvips -R -q ${POSTPOSTARGS} -o "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).ps" *.dvi
b61942
+  dvips -R -q ${POSTPOSTARGS} -o "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").ps" *.dvi
b61942
   ;;
b61942
 esac
b61942
--- xmlto-0.0.18/xmlto.in.basename	2005-08-08 14:03:38.000000000 +0100
b61942
+++ xmlto-0.0.18/xmlto.in	2005-08-08 14:03:52.000000000 +0100
b61942
@@ -339,7 +339,7 @@
b61942
   XSLT_PROCESSED="$INPUT_FILE"
b61942
 else
b61942
   [ "$VERBOSE" -ge 1 ] && echo >&2 "Stylesheet: ${STYLESHEET}"
b61942
-  XSLT_PROCESSED="$XSLT_PROCESSED_DIR/$(basename ${INPUT_FILE%.*}).proc"
b61942
+  XSLT_PROCESSED="$XSLT_PROCESSED_DIR/$(basename "${INPUT_FILE%.*}").proc"
b61942
 
b61942
   if [ "$VERBOSE" -gt 2 ]
b61942
   then