invoking the program

M2 -- starts the program.

M2 file1 file2 ... -- starts the program, reading and executing the specified files.

These are the options that can also be provided on the command line.

  • -e x -- executes the expression x
  • -h -- displays the usage message
  • -q -- suppresses loading of init file 'init.m2'
  • -s -- stops execution if an error occurs
  • -xprompt -- special mode for running examples
  • M2 is actually a shell script which calls the executable file with appropriate arguments for loading the Macaulay 2 code previously compiled.

    See also initialization file.

    Go to main index.

    Go to concepts index.