>>829
http://www.unix.com/man-page/POSIX/1posix/trap/
ほんとだ…

あとで自分のscriptが#! /bin/sh で動くか試してみるわ。

ありがとう。