trap.sh(1)

TRAP.SH(1) User Contributed Perl Documentation TRAP.SH(1)

NAME

trap.sh - manage exit traps

SYNOPSIS

  #!/bin/sh
  . trap.sh
  lockfile -r0 "$workdir"/lock || exit
  add_trap rm -f "$workdir"/lock

AUTHOR

Written by Alexey Tourbin <at@altlinux.org>.

COPYING

Copyright (c) 2006 Alexey Tourbin, ALT Linux Team.

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

2023-11-23 perl v5.34.1