Replying to [ticket:898 hellik]:
> self-compild WinGrass r40741 in osgeo4w-stack
>
{{{
r.out.xyz --verbose input=elevation@PERMANENT output=C:\wd\mg\elev.xyz
}}}
Are you running this via the MSys shell or via cmd.exe?
The MSys shell interprets backslashes, so they need to be escaped:
{{{
r.out.xyz --verbose input=elevation@PERMANENT output=C:\\wd\\mg\\elev.xyz
}}}
or quoted:
{{{
r.out.xyz --verbose input=elevation@PERMANENT output='C:\wd\mg\elev.xyz'
}}}
In most situations, you can use a forward slash instead:
{{{
r.out.xyz --verbose input=elevation@PERMANENT output=C:/wd/mg/elev.xyz
}}}
OTOH, if you're running the command via cmd.exe (Windows' own command
prompt), this would be a bug.
Replying to [comment:1 glynn]:
> Replying to [ticket:898 hellik]:
> > self-compild WinGrass r40741 in osgeo4w-stack
> >
> {{{
> r.out.xyz --verbose input=elevation@PERMANENT output=C:\wd\mg\elev.xyz
> }}}
>
> Are you running this via the MSys shell or via cmd.exe?
starting point was the wx-gui which didn't work and from which the
original error message comes. then i've tried the command from the wx-gui
in the msys-shell and the same error message comes up.
>
> The MSys shell interprets backslashes, so they need to be escaped:
> {{{
> r.out.xyz --verbose input=elevation@PERMANENT
output=C:\\wd\\mg\\elev.xyz
> }}}
also, I seem to recall that MS Windows generally prefers you use "double"
quotes for quoting. (for msys it shouldn't matter, but for a DOS-in-a-box
it could)
Replying to [comment:1 glynn]:
> Replying to [ticket:898 hellik]:
> > self-compild WinGrass r40741 in osgeo4w-stack
> >
> {{{
> r.out.xyz --verbose input=elevation@PERMANENT output=C:\wd\mg\elev.xyz
> }}}
>
> Are you running this via the MSys shell or via cmd.exe?
also tested in the actual daily WinGrass-build
(http://josef.fsv.cvut.cz/wingrass/grass64/) via cmd.exe which the
original r.out.xyz --verbose input=elevation@PERMANENT
output=C:\wd\mg\elev.xyz, but this also fails in the cmd.exe
{{{
msys GRASS 6.4> ls C:\Temp\*
ls: C:Temp*: No such file or directory
}}}
the problem is that "\" has special meaning in a bourne shell, so when
used litterally needs to be quoted. What you have done is quoted the w, m,
and e characters in your filename and so the resulting string is
C:wdmgelev.xyz, and apparently you don't have permission to write to your
C:\ directory from that user account.
this should work without "quotes":
{{{
GRASS 6.4> r.stats -1gn elevation > C:\\wd\\mg\\elev.xyz
}}}