--- build_lcl_html.sh	2008-10-15 15:31:08.000000000 -0500
+++ build_lcl_html_nosed.sh	2008-10-15 15:31:51.000000000 -0500
@@ -30,7 +30,8 @@ cd -
 # create description file list
 DescrFiles=''
 for unit in $UnitList; do
-  ShortFile=`echo $unit | sed -e 's/\.pp\b//g' -e 's/\.pas\b//g'`
+  ShortFile=${unit%.pp}
+  ShortFile=${ShortFile%.pas}
   DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
 done
 
