[GRASS-dev] Re: [GRASS GIS] #1052: Build of 7.0.SVN dont work
GRASS GIS
trac at osgeo.org
Thu May 27 16:03:23 EDT 2010
#1052: Build of 7.0.SVN dont work
---------------------------+------------------------------------------------
Reporter: jeleniste | Owner: martinl
Type: defect | Status: assigned
Priority: normal | Milestone: 7.0.0
Component: Packaging | Version: svn-trunk
Resolution: | Keywords: wingrass
Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by glynn):
Replying to [comment:9 martinl]:
> > subprocess.call() is fine, but SHELL isn't normally going to be set on
Windows, so it will need to be set in a batch file prior to running the
grass70.py script (or the script needs -cmd and -sh options to choose the
shell).
>
> what about {{{GRASS_SH}}}
GRASS_SH specifies the program used to run Bourne shell scripts. I don't
know if it's still needed in 7.0, but if it is, it must refer to a
compatible shell regardless of whether you want to use sh.exe or cmd.exe
for the interactive command line.
On Unix, SHELL specifies the user's preferred shell (from the last field
in /etc/passwd). It's meant for use by programs which provide an option to
spawn an interactive shell (e.g. "M-x shell" in Emacs). It will always be
set for an interactive login unless the user explicitly unsets it.
On Windows, the shortcuts need to refer to batch files which set it
explicitly before invoking grass70.py, i.e. "set SHELL=...\bin\sh.exe" for
"start with MSys" and "set SHELL=%COMSPEC%" for "start with Windows
command prompt". Alternatively, extending the grass70.py script with e.g.
-sh and -cmd switches would eliminate the need for batch files and allow
the shortcut to refer to the script directly (AFAIK, a shortcut can
specify arguments but not environment variables).
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1052#comment:10>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list