lib/Tools/env
author wenzelm
Tue, 30 Nov 2021 11:31:07 +0100
changeset 74870 d54b3c96ee50
parent 73604 51b291ae3e2d
permissions -rwxr-xr-x
more robust physical timeout (despite 1bea05713dde), especially relevant for quickcheck where large unary numerals may cause excessive heap allocations and resulting GC is better included in the timing;

#!/usr/bin/env bash
#
# Author: Markus Wenzel, TU Muenchen
#
# DESCRIPTION: run a program in a modified environment


## diagnostics

PRG="$(basename "$0")"

function usage()
{
  echo
  echo "Usage: isabelle $PRG [CMDLINE ...]"
  echo
  echo
  echo "  Run CMDLINE within the Isabelle environment (via the system's env command)."
  echo
  exit 1
}


## main

[ "$1" = "-?" ] && usage

/usr/bin/env "$@"