Menu ▾ ▴

#3565 Trouble with Batch quit();

None
wont-fix
1
2019-07-16
2019-06-23
No

wxMaxima version: 19.05.7
using wxWidgets version: wxWidgets 3.1.0
Maxima version: 5.43.0
Maxima build date: 2019-06-01 18:55:31
Host type: x86_64-w64-mingw32
System type: Win32 10.0.17763 X86-64
Lisp implementation type: SBCL
Lisp implementation version: 1.4.14
wxMaxima's idea of the directory layout is:
User configuration dir: C:/Users/apayne/maxima/
Help dir: C:\maxima-5.43.0\wxMaxima/help
Using
cd C:\Users\apayne\Desktop
type C:\Users\apayne\Desktop\a4.txt |C:\maxima-5.43.0\bin\maxima.bat >C:\Users\apayne\Desktop\a1.txt
echo aaa

The echo is not executed

2 Attachments

Related

Bugs: #3565

Discussion

  • Leo Butler

    Leo Butler - 2019-07-16

    The problem is created by the line

    $quit();
    

    near the bottom of the input file a4.txt. If that line is entered interactively, a syntax error is signaled, but if batched Maxima hangs (it appears to be trying to read a subsequent character).
    If you remove that line, the code will be batched correctly. Note there is an irrevelant error on the first line, which refers to %.

    I will leave this open, because there is a bug here in batch.

     
    • Allan James Payne

      Hi Leo
      Thanks for your help.
      Rgds Allan Payne

      Sent from my iPad

      On 16 Jul 2019, at 04:09, Leo Butler l_butler@users.sourceforge.net wrote:

      The problem is created by the line

      $quit();
      near the bottom of the input file a4.txt. If that line is entered interactively, a syntax error is signaled, but if batched Maxima hangs (it appears to be trying to read a subsequent character).
      If you remove that line, the code will be batched correctly. Note there is an irrevelant error on the first line, which refers to %.

      I will leave this open, because there is a bug here in batch.

      [bugs:#3565] Trouble with Batch quit();

      Status: open
      Group: None
      Labels: Quit battch
      Created: Sun Jun 23, 2019 12:25 PM UTC by Allan James Payne
      Last Updated: Sun Jun 23, 2019 12:25 PM UTC
      Owner: nobody
      Attachments:

      a1.txt (16.6 kB; text/plain)
      a4.txt (847 Bytes; text/plain)
      wxMaxima version: 19.05.7
      using wxWidgets version: wxWidgets 3.1.0
      Maxima version: 5.43.0
      Maxima build date: 2019-06-01 18:55:31
      Host type: x86_64-w64-mingw32
      System type: Win32 10.0.17763 X86-64
      Lisp implementation type: SBCL
      Lisp implementation version: 1.4.14
      wxMaxima's idea of the directory layout is:
      User configuration dir: C:/Users/apayne/maxima/
      Help dir: C:\maxima-5.43.0\wxMaxima/help
      Using
      cd C:\Users\apayne\Desktop
      type C:\Users\apayne\Desktop\a4.txt |C:\maxima-5.43.0\bin\maxima.bat >C:\Users\apayne\Desktop\a1.txt
      echo aaa

      The echo is not executed

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/maxima/bugs/3565/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #3565

  • Leo Butler

    Leo Butler - 2019-07-16
    • labels: Quit battch --> batch, syntax error
     
  • Leo Butler

    Leo Butler - 2019-07-16
    • labels: batch, syntax error --> batch, eigenvectors, dgeev
    • status: open --> wont-fix
    • assigned_to: Leo Butler
     
  • Leo Butler

    Leo Butler - 2019-07-16

    Let me correct myself. Maxima does not hang, and batch does correctly handle a syntax error like that above. Rather, it is doing a very lengthy calculation in the preceding line. The problem is that you are giving eigenvectors a 4x4 matrix (of floats) to find the exact eigenvalues/vectors for.

    You should look at dgeev in the lapack package.

    Marking this as a wont-fix and closing.

     

Log in to post a comment.