rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

describe interaction parser not robust #2900

Closed rtoy closed 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-07 06:20:34 Created by macrakis on 2004-02-23 16:26:28 Original: https://sourceforge.net/p/maxima/bugs/516


When describe() finds more than one match, it offers the interactive choice:

Enter n, all, none, or multiple choices eg 1 3 :

If you enter anything but a space-separated list of numbers and all/none then semicolon, it tends to error out in stupid, ugly, unfriendly ways.

Try, for example, describe(ratp), which prompts:

0: RATP :(maxima.info)Definitions for Polynomials. 1: RATPRINT :Definitions for Polynomials. Enter n, all, none, or multiple choices eg 1 3 : ratp;

The following produce internal errors:

0,1; '0;

The following print nothing, and give no error:

1 $ 0-1; ratprint; 4;

The following give incomplete results:

0 <newline> 1; (shows only ratp)

The following give syntax errors:

0 <newline> ;

(note that the prompt doesn't say you need to terminate with semicolon -- I suspect that originally, the <newline> terminated the input, and the semicolon wasn't necessary)

xmaxima 5.9.0

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-07 06:20:35 Created by robert_dodier on 2004-11-01 05:13:22 Original: https://sourceforge.net/p/maxima/bugs/516/#0e75


Logged In: YES user_id=501686

This bug is addressed by rev 1.15 of cl-info.lisp.

Can't reproduce the above buggy behaviors with Maxima 5.9.1 (cmucl, linux). Observed behavior is reasonable and useful. Closing this bug until someone wants to file a bug against current behavior.

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-07 06:20:39 Created by robert_dodier on 2004-11-01 05:13:22 Original: https://sourceforge.net/p/maxima/bugs/516/#0831