On Tue, May 1, 2012 at 5:38 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote:
> On Tue, 1 May 2012, Tyler Smith wrote:
>
>> Yes, you've wrapped the output file name in single quotes. That prevents
>> all expansions, wildcards and variables. I don't think you need quotes at
>> all.
>
> Tyler,
>
>   Actually, the error references the DSN; that's the only string with a '/'
> in it: Illegal filename. Character </> not allowed.

Ah, I get it now. It's not really an illegal 'filename', in terms of
the operating system, it's an illegal mapname in terms of Grass. So
your Bash is now correct, it's your Grass that is broken. For the
output=$file part, try something like this: output=$(basename $file)

Tyler
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to