Bash buildin: trap

From wikieduonline
(Redirected from Trap)
Jump to navigation Jump to search
This article is a Draft. Help us to complete it.
trap - INT
(no output)


err_report() {
  echo "ERROR: existed with error on line $1"
}

trap 'err_report $LINENO' ERR


Related terms[edit]

See also[edit]

Advertising: