[GRASS5] [bug #842] (grass) r.stats uglyness on screen

this bug's URL: http://intevation.de/rt/webrt?serial_num=842
-------------------------------------------------------------------------

look how the stderr and stdout combine to make a mess on ones terminal:

0grass$ r.stats sites2
r.stats: 1 98%
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
*
0grass$ r.stats -a sites2
r.stats: 1 10000.000000
2 12500.000000
3 55000.000000
4 2500.000000
5 112500.000000
6 2500.000000
7 20000.000000
8 5000.000000
9 15000.000000
10 10000.000000
11 12500.000000
12 55000.000000
13 7500.000000
14 2500.000000
15 62500.000000
16 17500.000000
17 82500.000000
18 10000.000000
* 34005000.000000
0grass$ r.stats sites2> /dev/null
r.stats: 0grass$

even with -a the first line looks ugly.

and why does it print "r.stats" anyway?
--
http://www.geocities.com/jidanni/ Tel+886-4-25854780

--- Headers Follow ---

From neteler@itc.it Fri Nov 16 16:39:26 2001

Return-Path: <neteler@itc.it>
Delivered-To: grass-bugs@lists.intevation.de
Received: from omecihuatl.rz.uni-osnabrueck.de (omecihuatl.rz.Uni-Osnabrueck.DE [131.173.17.35])
  by lists.intevation.de (Postfix) with ESMTP id 7B0C5139CC
  for <grass-bugs@intevation.de>; Fri, 16 Nov 2001 16:39:26 +0100 (CET)
Received: from camelot.itc.it (camelot.itc.it [195.223.171.5])
  by omecihuatl.rz.uni-osnabrueck.de (8.11.1/8.11.1) with ESMTP id fAGFdQf23916
  for <grass-bugs@intevation.de>; Fri, 16 Nov 2001 16:39:26 +0100
Received: from artemide.itc.it (artemide [10.0.10.10])
  by camelot.itc.it (8.11.3/8.11.3) with ESMTP id fAGFdOd19370
  for <grass-bugs@intevation.de>; Fri, 16 Nov 2001 16:39:25 +0100 (MET)
Received: from thuille.itc.it. (thuille [10.40.0.110])
  by artemide.itc.it (8.11.3/8.11.3) with ESMTP id fAGFdNE19150
  for <grass-bugs@intevation.de>; Fri, 16 Nov 2001 16:39:23 +0100 (MET)
Received: (from neteler@localhost)
  by thuille.itc.it. (8.11.6/8.11.2) id fAGFdMa29621
  for grass-bugs@intevation.de; Fri, 16 Nov 2001 16:39:22 +0100
Resent-Message-Id: <200111161539.fAGFdMa29621@thuille.itc.it.>
Received: from camelot.itc.it (camelot [195.223.171.5])
  by artemide.itc.it (8.11.3/8.11.3) with ESMTP id fAGFMaE16813
  for <neteler@itc.it>; Fri, 16 Nov 2001 16:22:42 +0100 (MET)
Received: from localhost.localdomain (h137.s30.ts32.hinet.net [163.32.30.137])
  by camelot.itc.it (8.11.3/8.11.3) with ESMTP id fAGFMUd18942
  for <neteler@itc.it>; Fri, 16 Nov 2001 16:22:30 +0100 (MET)
Received: by localhost.localdomain (Postfix, from userid 501)
  id CA71216D4; Fri, 16 Nov 2001 17:45:25 +0800 (CST)
To: Markus Neteler <neteler@itc.it>
Subject: r.stats uglyness on screen
From: Dan Jacobson <jidanni@yam.com.tw>
Reply-To: jidanni@yahoo.com.tw
Date: Fri, 16 Nov 2001 17:45:24 +0800 01:00:00 +0000 (GMT)
Message-ID: <m23d3f3v7v.fsf@Mdan.jacobson.tw>
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Resent-From: neteler@itc.it
Resent-Date: Fri, 16 Nov 2001 16:39:22 +0100
Resent-To: grass-bugs@intevation.de

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=842
-------------------------------------------------------------------------

look how the stderr and stdout combine to make a mess on ones terminal:

If run with "-q", nothing should be printed to stderr.

Maybe "-q" should be assumed if stdout is a tty?

--
Glynn Clements <glynn.clements@virgin.net>