# HG changeset patch # User jwe # Date 983349519 0 # Node ID 4073be5aefa1299729e7f6ee0dcf8abd633d844a # Parent 63c75bc3db828352d68efbac79df457a405d1bba [project @ 2001-02-28 08:36:04 by jwe] diff -r 63c75bc3db82 -r 4073be5aefa1 src/ChangeLog --- a/src/ChangeLog Wed Feb 28 08:24:43 2001 +0000 +++ b/src/ChangeLog Wed Feb 28 08:38:39 2001 +0000 @@ -1,3 +1,8 @@ +2001-02-28 John W. Eaton + + * toplev.cc (main_loop): Set retval to non-zero value if error + occurs when not interactive. + 2001-02-26 John W. Eaton * parse.y (gobble_leading_white_space): Handle CRLF here too. diff -r 63c75bc3db82 -r 4073be5aefa1 src/input.cc --- a/src/input.cc Wed Feb 28 08:24:43 2001 +0000 +++ b/src/input.cc Wed Feb 28 08:38:39 2001 +0000 @@ -124,7 +124,7 @@ // The current line of input, from wherever. std::string current_input_line; -// TRUE after a call to completion_matches(). +// TRUE after a call to completion_matches. bool octave_completion_matches_called = false; static void diff -r 63c75bc3db82 -r 4073be5aefa1 src/input.h --- a/src/input.h Wed Feb 28 08:24:43 2001 +0000 +++ b/src/input.h Wed Feb 28 08:38:39 2001 +0000 @@ -72,7 +72,7 @@ // A line of input. extern std::string current_input_line; -// TRUE after a call to completion_matches(). +// TRUE after a call to completion_matches. extern bool octave_completion_matches_called; extern std::string gnu_readline (const std::string& s, bool force_readline = false); diff -r 63c75bc3db82 -r 4073be5aefa1 src/toplev.cc --- a/src/toplev.cc Wed Feb 28 08:24:43 2001 +0000 +++ b/src/toplev.cc Wed Feb 28 08:38:39 2001 +0000 @@ -148,7 +148,11 @@ if (error_state) { if (! (interactive || forced_interactive)) - break; + { + // We should exit with a non-zero status. + retval = 1; + break; + } } else {