All Topics

Environment Variables

CodeRunner defines a number of environment variables, prefixed by CR_, that are useful in compile scripts, run commands, debugger scripts, etc. Some important environment variables are listed below:

For a full list of the available variables, use the env shell command in a compile script:

#!/bin/sh
env | grep CR_
exit 1

Run Command Only

These environment variables are only available in run commands. When they appear in a run command, they are automatically quoted before the run command is executed.