[GRASS-user] Using v.colors in WinGRASS

Martin Landa landa.martin at gmail.com
Thu Nov 11 11:39:55 EST 2010


2010/11/10 Hamish <hamish_b at yahoo.com>:
>> try r44284, hopefully fixed.
>
> perhaps buggy:
>
> -    CMDLINE="`basename $0`"
> +    CMDLINE="`basename "$0"`"
>
>
> becomes "`basename " + $0 + "`"
>
> afair the " do not nest.
>
> maybe outer quotes are not needed?
> (but regardless I'm fairly sure this is not the cause of the v.colors bug, just a red herring)

it fixes white spaces in the path, e.g.

basename: extra operand
`(x86)/GRASS-65-SVN/scripts/v.db.addcol'
Try `basename --help' for more information.
C:/Program Files (x86)/GRASS-65-SVN/scripts/v.db.addcol:
line 116: unexpected EOF while looking for matching ``'
C:/Program Files (x86)/GRASS-65-SVN/scripts/v.db.addcol:
line 125: syntax error: unexpected end of file

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-user mailing list