Menu

#3225 asksign, askinteger loops when typing CTRL-D

None
open
nobody
5
2022-11-13
2016-10-01
No

I accidently typed CTRL-D when Maxima asked a question - the result was a loop, which could only be interrupted by CTRL-C.

eg.

askinteger(a);  /* and then type ctrl-d */
Acceptable answers are: yes, y, Y, no, n, N, unknown, uk
Is a an integer?

Acceptable answers are: yes, y, Y, no, n, N, unknown, uk
Is a an integer?

[...]

or

asksign(a); /* and then type CTRL-D */

That issue seem to be Lisp dependent, clisp and gcl are affected, ecl and sbcl not (there the question is asked again and the user may enter a input again).

Best regards, Wolfgang

Discussion

  • Robert Dodier

    Robert Dodier - 2016-11-19
     
  • Robert Dodier

    Robert Dodier - 2022-11-03
    • labels: --> gcl, clisp, input
     
  • Robert Dodier

    Robert Dodier - 2022-11-03

    I wonder if this is an interaction with readline.

     
  • Camm Maguire

    Camm Maguire - 2022-11-13

    Confirmed this is not dependent on readline. I believe CTRL-D closes standard input,so maxima would need to check for this to avoid the loop. clisp apparently has the same behavior. The lisp system should not abort on closing standard input as GCL does not, as far as I understand.

     

Log in to post a comment.