[GRASS-git] [OSGeo/grass] 20bee0: general/g.mapsets: fix write MAPSETS without addit...

Tomas Zigo noreply at github.com
Wed Sep 21 12:01:15 PDT 2022


  Branch: refs/heads/releasebranch_8_0
  Home:   https://github.com/OSGeo/grass
  Commit: 20bee01c3c6a8465df7597cf37d16a1565a15ec0
      https://github.com/OSGeo/grass/commit/20bee01c3c6a8465df7597cf37d16a1565a15ec0
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2022-09-21 (Wed, 21 Sep 2022)

  Changed paths:
    M general/g.mapsets/main.c

  Log Message:
  -----------
  general/g.mapsets: fix write MAPSETS without additional empty new line (#2586)

Current behavior:

```
GRASS nc_spm_08_grass7/landsat:~ > g.mapsets operation=set mapset=landsat

GRASS nc_spm_08_grass7/landsat:~ > cat -e "$(g.gisenv get="GISDBASE")/\
$(g.gisenv get="LOCATION_NAME")/$(g.gisenv get="MAPSET")/SEARCH_PATH"
landsat$
$
```

Expected behavior:

```
GRASS nc_spm_08_grass7/landsat:~ > g.mapsets operation=set mapset=landsat

GRASS nc_spm_08_grass7/landsat:~ > cat -e "$(g.gisenv get="GISDBASE")/\
$(g.gisenv get="LOCATION_NAME")/$(g.gisenv get="MAPSET")/SEARCH_PATH"
landsat$
```




More information about the grass-commit mailing list