[GRASS-dev] simplify G_convert_dirseps_to_host(G_tempfile()) ?

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Jun 18 08:02:07 EDT 2007


On Mon, 18 Jun 2007, Moritz Lennert wrote:

> On 18/06/07 13:02, Hamish wrote:
>
>> 
>> I just added a G_tempfile() call in d.title, now with the -d flag it
>> does fopen(),fclose() then like G_system("d.text < \"%s\"", tmpfile).
>> 
>
> Just wondering: how Windows-friendly is such usage of G_system ?

I think it should be fine. cmd.exe understands the redirection operators 
like <, > and |. And using double quotes to quote pathnames is also 
Windows-compatible (single quotes won't work).

Paul




More information about the grass-dev mailing list