What is the meaning of "trap" in bash with ERR flag?

Viewed 20

given function error in bash, what is the meaning of this line:
trap 'error ${LINENO}' ERR after the error function ?

When is this function (error) called ? and what is the meaning of ERR flag in this case?

0 Answers
Related