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