SHELL environment variable

Learn about the SHELL environment variable.

clearmake does not use the SHELL environment variable to select the shell program in which to execute build scripts. It uses Windows cmd.exe, unless you specify another program with a SHELL macro. You can specify SHELL on the command line, in the makefile, or in a build options spec; the value of SHELL must be a full path name, and on Windows, it must include the file extension.

Note: If clearmake determines that it can execute the build script directly, it does not use the shell program even if you specify one explicitly. If you use Windows .bat files in build scripts, you must make them executable (use the cleartool protect command). To force clearmake to always use the shell program, set the environment variable CCASE_SHELL_REQUIRED.