help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

octave exits on error


From: John W. Eaton
Subject: octave exits on error
Date: Thu, 17 Apr 1997 13:11:57 -0500

On 17-Apr-1997, Francesco Potorti` <address@hidden> wrote:

| I use the appended Emacs function to run octave in a buffer on a
| remote machine.  What it does is to call octave remotely through remsh
| with the -i option.  It works perfectly, only problem is that a parse
| error makes it abort, like this:
| ---------------------------------------------------------------
| Octave, version 2.0.5 (alpha-dec-osf3.2).
| Copyright (C) 1996 John W. Eaton.
| This is free software with ABSOLUTELY NO WARRANTY.
| For details, type `warranty'.
| 
| address@hidden:~/math> read zzz
| parse error:
| 
| >>> read zzz
|            ^
| Process octave finished

I don't have remsh, and I can't reproduce this behaviour with rsh.
However, I suspect that the following patch might fix the problem.
Can you try it and tell me if it does?

Thanks,

jwe

Index: parse.y
===================================================================
RCS file: /home/jwe/src/master/octave/src/parse.y,v
retrieving revision 1.111
diff -c -r1.111 parse.y
*** parse.y     1997/04/15 22:03:14     1.111
--- parse.y     1997/04/17 18:00:06
***************
*** 251,257 ****
      { \
        global_command = 0; \
        yyerrok; \
!       if (interactive) \
        YYACCEPT; \
        else \
        YYABORT; \
--- 251,257 ----
      { \
        global_command = 0; \
        yyerrok; \
!       if (interactive || forced_interactive) \
        YYACCEPT; \
        else \
        YYABORT; \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]