-- -*- M2-comint -*- hash: 8856152629521794208

i1 : programPaths#"gfan" = "/path/to/gfan/" 

o1 = /path/to/gfan/

i2 : gfan = findProgram("gfan", "gfan _version --help", Verbose => true)
 -- /path/to/gfan/gfan does not exist
 -- /usr/libexec/Macaulay2/bin/gfan does not exist
 -- /usr/local/sbin/gfan does not exist
 -- /usr/local/bin/gfan does not exist
 -- /usr/sbin/gfan does not exist
 -- /usr/bin/gfan exists and is executable
 -- running "/usr/bin/gfan _version --help":
This program writes out version information of the Gfan installation.
 -- return value: 0

o2 = gfan

o2 : Program

i3 : findProgram "normaliz"

o3 = normaliz

o3 : Program

i4 : findProgram("topcom", "cube 3", Verbose => true, Prefix => {
       (".*", "topcom-"),
       ("^(cross|cube|cyclic|hypersimplex|lattice)$", "TOPCOM-"),
       ("^cube$", "topcom_")})
 -- /usr/libexec/Macaulay2/bin/cube does not exist
 -- /usr/libexec/Macaulay2/bin/topcom-cube does not exist
 -- /usr/libexec/Macaulay2/bin/TOPCOM-cube does not exist
 -- /usr/libexec/Macaulay2/bin/topcom_cube does not exist
 -- /usr/local/sbin/cube does not exist
 -- /usr/local/sbin/topcom-cube does not exist
 -- /usr/local/sbin/TOPCOM-cube does not exist
 -- /usr/local/sbin/topcom_cube does not exist
 -- /usr/local/bin/cube does not exist
 -- /usr/local/bin/topcom-cube does not exist
 -- /usr/local/bin/TOPCOM-cube does not exist
 -- /usr/local/bin/topcom_cube does not exist
 -- /usr/sbin/cube does not exist
 -- /usr/sbin/topcom-cube does not exist
 -- /usr/sbin/TOPCOM-cube does not exist
 -- /usr/sbin/topcom_cube does not exist
 -- /usr/bin/cube does not exist
 -- /usr/bin/topcom-cube exists and is executable
 -- running "/usr/bin/topcom-cube 3":
[[0,0,0,1],[1,0,0,1],[0,1,0,1],[1,1,0,1],[0,0,1,1],[1,0,1,1],[0,1,1,1],[1,1,1,1]]
[[7,6,5,4,3,2,1,0],[6,7,4,5,2,3,0,1],[4,6,5,7,0,2,1,3],[0,4,2,6,1,5,3,7]]
 -- return value: 0

o4 = topcom

o4 : Program

i5 : findProgram("gfan", "gfan _version --help", Verbose => true,
       MinimumVersion => ("0.5",
      "gfan _version | head -2 | tail -1 | sed 's/gfan//'"))
 -- /path/to/gfan/gfan does not exist
 -- /usr/libexec/Macaulay2/bin/gfan does not exist
 -- /usr/local/sbin/gfan does not exist
 -- /usr/local/bin/gfan does not exist
 -- /usr/sbin/gfan does not exist
 -- /usr/bin/gfan exists and is executable
 -- running "/usr/bin/gfan _version --help":
This program writes out version information of the Gfan installation.
 -- return value: 0
 -- found version 0.7 >= 0.5

o5 = gfan

o5 : Program

i6 : 
