[GAP Forum] Gap doesn't quit automatically when running in script mode.

Max Horn horn at mathematik.uni-kl.de
Sat Apr 30 11:56:46 BST 2022


Hi Hongyi,

you need to use 

    QUIT;

instead of "quit". 

However, the result can still hang if there is an error in the script. To prevent this, I strongly recommend to pass the --quitonbreak to gap when using it non-interactively:

  gap --quitonbreak myscript.g

Cheers
Max



More information about the Forum mailing list