[GRASS-dev] g.mlist as C implementation?

Paul Kelly paul-grass at stjohnspoint.co.uk
Tue Sep 11 12:56:05 EDT 2007


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




More information about the grass-dev mailing list