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

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


  Branch: refs/heads/releasebranch_7_8
  Home:   https://github.com/OSGeo/grass
  Commit: 13cdec4077e18e93552627735196ff5d1a368188
      https://github.com/OSGeo/grass/commit/13cdec4077e18e93552627735196ff5d1a368188
  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