get_rproj bug

From: Ben Maughan (bjm@star.sr.bham.ac.uk)
Date: Thu Feb 01 2001 - 12:40:11 EST


Hello all,
 I've just been trying to use the get_rproj script, and have encountered
a bug that seems really obvious. The lines

mv $srcreg /tmp/${padcnt}.regs
cp /tmp/b.regsb /tmp/${padcnt}.regsb

don't work for me because the line

padcnt=`printf "%03s" $count`

introduces spaces into the variable, as can be seen by echoing the line
mv $srcreg /tmp/${padcnt}.regs
which gives,
mv /tmp/srcag /tmp/ 7.regs

This is easily solved by ammending the padcnt line to
padcnt=`printf "%03s" $count | tr -d ' '`
which removes the offending spaces. Did anyone else encounter this problem?

Cheers,
Ben Maughan



This archive was generated by hypermail 2b29 : Tue Feb 12 2013 - 01:00:09 EST