#2975: support bash on windows 10
--------------------------+----------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 8.0.0
Component: Startup | Version: unspecified
Resolution: | Keywords: bash, wingrass, windows 10
CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------------------
Comment (by hellik):
Replying to [comment:8 wenzeslaus]:
>
> If I remember correctly, the reason to remove it was that there was too
many ways how to start GRASS GIS (with cmd.exe, with MSYS, and than
without GUI guess). The other reason was too different behaviors on
Windows (in cmd.exe and in MSYS) and finally also problems with MSYS
itself mostly the encoding (would have to find the emails to confirm
those).
e.g. windows command console understands slash and backslash in paths, see
{{{
D:\wd\sample_data>cd D:\wd\sample_data\otherdata
D:\wd\sample_data\otherdata>cd ..
D:\wd\sample_data>cd D:/wd/sample_data/otherdata
D:\wd\sample_data\otherdata>
}}}
not sure if MSYS handles all these cases of path issues.
in the OSGeo4W shell based on the windows native command line, you can
still start GRASS without GUI, e.g.
{{{
D:\wd\sample_data\otherdata>grass74 --text
Failed to enforce user specified language 'en' with error: 'unsupported
locale setting'
A LANGUAGE environmental variable has been set.
Part of messages will be displayed in the requested language.
Cleaning up temporary files...
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows
__________ ___ __________ _______________
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
\____/_/ |_/_/ |_/____/____/ \____/___//____/
Welcome to GRASS GIS 7.4.1
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
Start the GUI with: g.gui wxpython
When ready to quit enter: exit
Microsoft Windows [Version 10.0.17134.228]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.
D:\wd\sample_data\otherdata>
}}}
also
{{{
grass74 --exec MyScript.bat D:/myGrassData/MyLoc/MyMapset
}}}
works on the OSGeo4W shell; anyone tested if this works with MSYS?
also GRASS-R-integration works in the windows command line:
{{{
o avoid Unicode errors in GUI, install en_US.UTF-8 locale and restart
GRASS.
Also consider upgrading your Python version to one containg fix for Python
Issue 30755.
Cleaning up temporary files...
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows
__________ ___ __________ _______________
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
\____/_/ |_/_/ |_/____/____/ \____/___//____/
Welcome to GRASS GIS 7.5.svn (r73206)
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit
Launching <wxpython> GUI in the background, please wait...
Microsoft Windows [Version 10.0.17134.228]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.
C:\>R
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
>
}}}
anyone tested if this works also with MSYS?
and I also remember encoding issues.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2975#comment:12>
GRASS GIS <https://grass.osgeo.org>