Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2014 18:30:01 GMT
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/187728: [patch] bc(1) should print error message to stderr
Message-ID:  <201403231830.s2NIU1d9076333@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/187728; it has been noted by GNATS.

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, ksmakoto@dd.iij4u.or.jp
Cc:  
Subject: Re: bin/187728: [patch] bc(1) should print error message to stderr
Date: Sun, 23 Mar 2014 19:20:25 +0100

 In PR bin/187728, you wrote:
 > bc(1) should prints error message to stderr.
 
 POSIX seems to require this in interactive mode; in non-interactive
 mode, invalid input causes undefined behaviour.
 
 Note that the patch changes more than just the destination of the error
 message. The code in the repository prints the error message if and when
 dc reaches the point of the error, rather than immediately when the
 error is detected in the patched version.
 
 Since the patched version is simpler, it seems that the original code
 may be deliberately written that way.
 
 -- 
 Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403231830.s2NIU1d9076333>