79725880

Date: 2025-08-05 09:35:57
Score: 1
Natty:
Report link

If I try the command gap -c Print("Hello"); on my Ubuntu, I get an error. In my case the right syntax seems to be :

gap -c "your_code"

or :

gap -c 'your_code'

Work for me : gap -c 'Print("Hello\n");' (I use ' instead of " for a correct parsing... and the \n matter !).

You can try a more simple thing : gap -c "a:=1;" and check in the console that a is indeed bound and equal to 1. However the field in GAPInfo.CommandLineOptions; for the option -c still be empty, I don't think this is where the data is stored. You can recover your input by calling GAPInfo.InitFiles;.

To sum up there is a screen of running the following command :

gap -c 'a:=1; Print("ThisOneIsDisplayed\n"); Print("ThisOneNot");'
Reasons:
  • RegEx Blacklisted phrase (1): I get an error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Marzak