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

Tomas Zigo noreply at github.com
Wed Sep 21 12:00:29 PDT 2022


  Branch: refs/heads/releasebranch_8_2
  Home:   https://github.com/OSGeo/grass
  Commit: 5aae26b9b42d6d7077b171ad36e32d2b30416351
      https://github.com/OSGeo/grass/commit/5aae26b9b42d6d7077b171ad36e32d2b30416351
  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