[GAP Forum] GAP argument vector

Max Horn max at quendi.de
Fri Mar 2 19:06:10 GMT 2018


Dear all,

a simpler way to accessing the environment is to use GAPInfo.SystemEnvironment.

So e.g. you could do this on the command line to start GAP (at least with bash and other bourne shells)

VALUE=5 gap myfile.g

and in myfile.g, retrieve the value as a string via
   GAPInfo.SystemEnvironment.VALUE

Cheers,
Max


More information about the Forum mailing list