[GRASS-dev] [GRASS GIS] #3264: t.info -g not working with eval because of spaces in the output

GRASS GIS trac at osgeo.org
Tue Jan 17 12:16:02 PST 2017


#3264: t.info -g not working with eval because of spaces in the output
--------------------------+-------------------------
 Reporter:  veroandreo    |      Owner:  grass-dev@…
     Type:  defect        |     Status:  new
 Priority:  normal        |  Milestone:  7.0.6
Component:  Temporal      |    Version:  svn-trunk
 Keywords:  t.info, eval  |        CPU:  Unspecified
 Platform:  Linux         |
--------------------------+-------------------------
 {{{eval `t.info -g tempmean`}}} gives the following error:

 bash: 09:23:20.445316: command not found...

 because there is a space in creation_time between the date and time. There
 are spaces in modification_time, start_time, end_time and granularity, as
 well. Here is part of the output of {{{t.info -g tempmean}}}
 {{{
 id=tempmean at climate_1970_2012
 name=tempmean
 mapset=climate_1970_2012
 creator=veroandreo
 temporal_type=absolute
 creation_time=2016-09-23 09:23:20.445316
 modification_time=2016-09-23 09:25:30.412821
 semantic_type=mean
 start_time=2000-01-01 00:00:00
 end_time=2013-01-01 00:00:00
 granularity=1 month
 map_time=interval
 }}}

 Maybe those spaces could be quoted?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3264>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list