[GRASS-user] why is v.build.all (and many others) a windows batch file and not an executable?

Markus Neteler neteler at osgeo.org
Wed May 4 03:16:16 PDT 2016


On Wed, May 4, 2016 at 12:01 PM, Moritz Lennert
<mlennert at club.worldonline.be> wrote:
> On 04/05/16 00:50, Bartolomei.Chris wrote:
>>
>> Hi Martin
>> The problem I am having is that my bourne shell scripts (#!/bin/sh) cannot
>> execute the bat files ...
...
> As Helmut has tried to clarify, the issue is with msys, not with GRASS.
>
> More fundamentally, the decision was made to make GRASS on Windows a Windows
> experience, not a *nix emulation experience. This is one of the reasons why
> scripts were translated to Python. Users are, therefore, strongly encouraged
> to use Python as scripting language and not bash. This allows to run your
> scripts in the standard cmd console and thus not be hit by the
> incompatibilities between windows logic and *nix logic.

Just FYI: there is also a Wiki page:
https://grasswiki.osgeo.org/wiki/Converting_Bash_scripts_to_Python

(@all: please add more tricks there)

Markus


More information about the grass-user mailing list