[GRASS-SVN] r60751 - grass/trunk/general/g.mlist

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 8 05:44:59 PDT 2014


Author: hcho
Date: 2014-06-08 05:44:59 -0700 (Sun, 08 Jun 2014)
New Revision: 60751

Modified:
   grass/trunk/general/g.mlist/g.mlist.html
   grass/trunk/general/g.mlist/main.c
Log:
g.mlist: changed mapset=.. to mapset=* for all mapsets

Modified: grass/trunk/general/g.mlist/g.mlist.html
===================================================================
--- grass/trunk/general/g.mlist/g.mlist.html	2014-06-08 12:34:04 UTC (rev 60750)
+++ grass/trunk/general/g.mlist/g.mlist.html	2014-06-08 12:44:59 UTC (rev 60751)
@@ -53,12 +53,12 @@
 dmt
 </pre></div>
 
-Similarly <b>mapset</b>=.. (two dots) prints data files from all
+Similarly <b>mapset</b>=* (one asterisk) prints data files from all
 available mapsets also including those which are not listed in the
 current search path (see <tt>g.mapsets -l</tt>).
 
 <div class="code"><pre>
-g.mlist rast mapset=..
+g.mlist rast mapset=*
 
 raster map(s) available in mapset <landsat>:
 lsat5_1987_10

Modified: grass/trunk/general/g.mlist/main.c
===================================================================
--- grass/trunk/general/g.mlist/main.c	2014-06-08 12:34:04 UTC (rev 60750)
+++ grass/trunk/general/g.mlist/main.c	2014-06-08 12:44:59 UTC (rev 60751)
@@ -93,7 +93,7 @@
     opt.mapset = G_define_standard_option(G_OPT_M_MAPSET);
     opt.mapset->label =
 	_("Name of mapset to list (default: current search path)");
-    opt.mapset->description = _("'.' for current mapset; '..' for all mapsets in location");
+    opt.mapset->description = _("'.' for current mapset; '*' for all mapsets in location");
     opt.separator = G_define_standard_option(G_OPT_F_SEP);
     opt.separator->answer = "newline";
 
@@ -208,7 +208,7 @@
 	mapset = "";
     else if (strcmp(mapset, ".") == 0)
 	mapset = G_mapset();   /* current mapset */
-    else if (strcmp(mapset, "..") == 0) {
+    else if (strcmp(mapset, "*") == 0) {
         if (flag.pretty->answer || flag.full->answer)
             G_fatal_error(_("-%c/-%c and %s=%s are mutually exclusive"),
                           flag.pretty->key, flag.full->key, opt.mapset->key,



More information about the grass-commit mailing list