On Sat, Apr 30, 2022 at 9:00 PM Hongyi Zhao <[email protected]> wrote: > > On Sat, Apr 30, 2022 at 6:58 PM Max Horn <[email protected]> wrote: > > > > Hi Hongyi, > > > > you need to use > > > > QUIT; > > Nice. It does the trick. But why must it be used like this? > > > 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 > > Thank you for your tip. Based on the notes here [1-2], I adopted the > following shebang line: > > #!/usr/bin/env -S gap --quitonbreak > > And then test it as follows: > > $ chmod +x abstract-group-irrep.gap > $ ./abstract-group-irrep.gap
I was in such a hurry that I forgot to add the links quoted above. Here they are: [1] https://unix.stackexchange.com/questions/399690/multiple-arguments-in-shebang [2] https://jhermann.github.io/blog/linux/know-how/2020/02/28/env_with_arguments.html > > > Cheers > > Max > > Yours sincerely, > Hongyi _______________________________________________ Forum mailing list [email protected] https://mail.gap-system.org/mailman/listinfo/forum
