bin/187728: [patch] bc(1) should print error message to stderr

Jilles Tjoelker jilles at stack.nl
Sun Mar 23 18:30:01 UTC 2014


The following reply was made to PR bin/187728; it has been noted by GNATS.

From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, ksmakoto at 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


More information about the freebsd-bugs mailing list