b-long / DevReference

Succinct reference information for developers.
5 stars 1 forks source link

Add 'trap' #11

Open b-long opened 1 year ago

b-long commented 1 year ago

What is it?

It allows you to run commands, "when the shell receives signal sigspec" (source the GNU manual).

It's complex, hence I don't recommend using Shell programming:

Platform / Compatibility

Patterns you may see

trap cmd 0 1 2 3 13 15