[GRASS-git] [OSGeo/grass] e8c3ff: init: Default to Bash, fallback to sh (#1836)
Vaclav Petras
noreply at github.com
Fri Sep 3 18:24:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: e8c3ff21ddaeb0256dc9bfa291b0136e724b06ed
https://github.com/OSGeo/grass/commit/e8c3ff21ddaeb0256dc9bfa291b0136e724b06ed
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2021-09-03 (Fri, 03 Sep 2021)
Changed paths:
M lib/init/grass.py
Log Message:
-----------
init: Default to Bash, fallback to sh (#1836)
* When SHELL env var was not set, sh would be used which likely unexpected if bash is on path.
* Now bash presence is tested and it is used if available.
* If there is no bash on path, sh is used as a fallback.
* Compared to the previous code, this works with an empty SHELL variable and avoids use of bare except.
More information about the grass-commit
mailing list