On 19/11/08 02:49, Hamish wrote:
I would suggest like:

oldcoltype="`db.describe -c table="$table" database="$database" driver="$driver" | grep -w 
"$oldcol" | cut -d':' -f3`"


- always quote variables which could contain spaces (even in error).
- use "grep -w" to only look for words, not strings


Committed as such. Thanks for the tip !

Moritz
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to