[GRASS-dev] Re: windows binaries

Hamish hamish_nospam at yahoo.com
Sun Nov 19 20:09:52 EST 2006


Glynn Clements wrote:
> When a d.* command is run with $GRASS_RENDER_IMMEDIATE = TRUE, it
> generates a PPM/PGM pair with dimensions $GRASS_WIDTH * $GRASS_HEIGHT,
> with the PPM file named $GRASS_PNGFILE and the PGM file named
> ${GRASS_PNGFILE%.ppm}.pgm (i.e. $GRASS_PNGFILE with the .ppm suffix
> replaced by .pgm).


is "${GRASS_PNGFILE%.ppm}.pgm" valid for all /bin/sh or just bash?

i.e. should scripts use it in preference to "`basename $file .ext1`.ext2"
where applicable?


Hamish




More information about the grass-dev mailing list