[GRASS-dev] Re: windows binaries

Glynn Clements glynn at gclements.plus.com
Mon Nov 20 14:05:43 EST 2006


Hamish 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?

It's specified by SUSv2:

http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02

and it works in ash.

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

I'm not sure about that.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list