[GRASS5] filenames in GRASS database/r.mask

Eric G. Miller egm2 at jps.net
Thu May 10 21:39:16 EDT 2001


On Thu, May 10, 2001 at 12:45:38PM +0200, Andreas Lange wrote:
> Hi,
> 
> i noticed two minor problems:
> some modules (at least r.mapcalc) do not allow dashes (-) in filenames
> or at least need different quoting/treatment. I noticed this with
> shade.rel.sh and shade.clr.sh, which choked on my raster files with
> dashes. I changed both scripts to exit with an error message with files
> with dashes in, i know of no solution. 
> This should be put into the TODO to revise this for 5.1. Every module
> should work with allowed filenames.

I was recently looking at r.mapcalc and I'm not sure it would be
possible to differentiate between: 
	foo = a<minus>b 
    and 
    	foo = a<hyphen>b

as both <minus> and <hyphen> are generally represented by the same
character '-' which is really longer than a hyphen '­'.

Whitespace is ignored for tokenization by the parser. So,
	"foo + if(bar, bar, baz)" = "foo+if(bar,bar,baz)"

Perhaps there is a way to have the parser first try to match "foo-bar"
to a raster, and failing that subdivide the token to {foo,-,bar}?

Or, perhaps, we should disallow hyphens in GRASS database files?

-- 
Eric G. Miller <egm2 at jps.net>

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list