On Sun, Nov 28, 2010 at 12:50 PM, Hamish <hamis...@yahoo.com> wrote: > Hi, > > Markus N wrote: >> I have uploaded an attempt to fix the problem to Addons-SVN. > > I'd suggest trying > col=`cat "$COLNAMETMP" | tr '\n' ' '` > > _always_ quote filenames, and the column name content is > unlikely to contain control chars. probably the pipe to tr is > not needed actually. > > > However, this a few lines later is certainly a bashism: > ${col[0]} > > either drop the array usage or change the shebang at the top to > be #!/bin/bash. I suggest modifying the shebang as the easiest > solution.
that part isn't my code - I'll leave these changes to others (I am not much familiar with bash, so decoding this into sh may be faster done by others). Markus _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user