John Stoneham schreef: > On Wed, Oct 15, 2008 at 10:10 AM, Henry Vermaak <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > yes, maybe it's getting confused by the multiple -e. have you tried > sed 's/\(\.pp\|\.pas\)\b//g'? that sed should probably only run once, > too (on the output of the ls). > > > Yeah, I figured it was the sed command that was the problem. The thing > is, there is no need to use sed there anyway, since bash string > processing handles removing those two extensions in a much simpler > manner, as my "fix" shows.
I did not notice that, because you change still did contain the sed call: # 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=${ShortFile%.pp} ShortFile=${ShortFile%.pas} DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml" done Vincent _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus