[GRASS-user] v.rast.stats over a large vector file
Hamish
hamish_b at yahoo.com
Sun Nov 28 06:50:50 EST 2010
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.
(on Ubuntu the default /bin/sh is dash, which does not accept
bashisms [but is very fast]; FWIW in msys the default /bin/sh
is bash)
Hamish
More information about the grass-user
mailing list