[GRASS-SVN] r60820 - grass/trunk/general/g.mlist
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 13 07:37:24 PDT 2014
Author: hcho
Date: 2014-06-13 07:37:24 -0700 (Fri, 13 Jun 2014)
New Revision: 60820
Modified:
grass/trunk/general/g.mlist/main.c
Log:
g.mlist: suppress messages for non-terminal output
Modified: grass/trunk/general/g.mlist/main.c
===================================================================
--- grass/trunk/general/g.mlist/main.c 2014-06-13 11:34:56 UTC (rev 60819)
+++ grass/trunk/general/g.mlist/main.c 2014-06-13 14:37:24 UTC (rev 60820)
@@ -315,7 +315,7 @@
if (count > 0) {
if (any)
fprintf(fp, "%s", separator);
- if (fp == stdout)
+ if (fp == stdout && isatty(STDOUT_FILENO))
G_message(_("%s available in mapset <%s>:"), elem->text, mapset);
}
More information about the grass-commit
mailing list