[GRASS-SVN] r37926 - grass/trunk/general/g.parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 17 16:45:34 EDT 2009
Author: glynn
Date: 2009-06-17 16:45:34 -0400 (Wed, 17 Jun 2009)
New Revision: 37926
Modified:
grass/trunk/general/g.parser/main.c
Log:
Don't use GRASS_SH
Modified: grass/trunk/general/g.parser/main.c
===================================================================
--- grass/trunk/general/g.parser/main.c 2009-06-17 15:35:30 UTC (rev 37925)
+++ grass/trunk/general/g.parser/main.c 2009-06-17 20:45:34 UTC (rev 37926)
@@ -392,14 +392,10 @@
* immediately and that breaks scripts running GRASS scripts
* because they dont wait until GRASS script finished */
/* execlp( "sh", "sh", filename, "@ARGS_PARSED@", NULL); */
- /* _spawnlp ( _P_OVERLAY, "sh", "sh", filename, "@ARGS_PARSED@", NULL ); */
+ /* _spawnlp ( _P_OVERLAY, filename, filename, "@ARGS_PARSED@", NULL ); */
int ret;
- char *shell = getenv("GRASS_SH");
- if (shell == NULL)
- shell = "sh";
- ret =
- _spawnlp(_P_WAIT, shell, shell, filename, "@ARGS_PARSED@", NULL);
+ ret = _spawnlp(_P_WAIT, filename, filename, "@ARGS_PARSED@", NULL);
G_debug(1, "ret = %d", ret);
if (ret == -1) {
perror("_spawnlp() failed");
More information about the grass-commit
mailing list