JustBash.Commands.Trap (JustBash v0.4.0)

View Source

The trap builtin command - trap signals and execute commands.

Usage: trap [command] [signal ...]

   trap -l    (list signals)
   trap -p    (print traps)

In JustBash, only EXIT trap is fully supported since signals don't exist in the sandboxed environment.