Skip to content

orbit-online/trap.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trap.sh

Library for managing bash signal traps.

Contents

Installation

With μpkg

upkg install -g orbit-online/trap.sh@<VERSION>

Usage

trap_append CMD SIGNAL

Appends CMD to the SIGNAL trap. $TRAP_POINTER will contain a pointer that can be used with trap_remove to remove the command again.

trap_remove POINTER

Removes the command identified by POINTER from the list of traps to run.

About

Library for managing bash signal traps

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages