[GRASS-dev] Using a multi-"${GIS_OPT_X}" input in a shell for loop

Glynn Clements glynn at gclements.plus.com
Thu Nov 14 03:57:52 PST 2013


Vaclav Petras wrote:

> And about Bash versus Python, I agree, I feel it the same, but at the end,
> I always ends with Python. By the way, there is actually one thing which is
> sometimes used and that is generation of bash code/script in Python and
> then running it using bash command. Bit strange but powerful.

And dangerous (which is why the use of system() and popen() has been
eradicated in 7.0).

And non-portable; for 7.0, Windows users shouldn't need to have bash
(or any Unix tools) installed.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list