Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: Adam Sampson Newsgroups: gnu.chess.bug Subject: -a doesn't work in gnuchess-6.2.2 Date: Sun, 18 Oct 2015 12:05:58 +0100 Lines: 15 Sender: Adam Sampson Approved: bug-gnu-chess@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1445174717 1681 208.118.235.17 (18 Oct 2015 13:25:17 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-gnu-chess@gnu.org Envelope-to: bug-gnu-chess@gnu.org Content-Disposition: inline X-Homepage: http://offog.org/ User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.187.30.52 X-Mailman-Approved-At: Sun, 18 Oct 2015 09:25:15 -0400 X-BeenThere: bug-gnu-chess@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for GNU Chess List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.chess.bug:2 Hi, In gnuchess 6.2.2, the -a command-line option doesn't work properly: it ought to compile the book and then quit, but it leaves the user sitting at the gnuchess prompt instead of quitting. >From a quick look at the code, this seems to be because the loop at the bottom of main() runs until (flags & QUIT), but the only thing that sets QUIT is ForwardUserInputToEngine, which hasn't been used by the -a code. Thanks, -- Adam Sampson