On Tue, 11 Sep 2007, Maciej Sieczka wrote:

Glynn Clements wrote:
Hamish wrote:

I noticed parts of the script may be a bit fragile/inefficient, which is
of concern for a module mainly intended as a scripting tool.

- The script relies on "echo -n"; not portable?

Nope. According to the official specification, echo doesn't accept any
switches. OTOH, the GNU version doesn't support the \c sequence. IOW,
there is no portable way to echo a string without appending a newline.

What about the echo that is included with GRASS: $GISBASE/etc/echo?
It suppresses a new line if the -n flag is used, and prints to stderr if -e is used, otherwise stdout.

Might be another use for it?

Paul

_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

Reply via email to