#!/bin/bash
#
# usage:
# SHELL=/path/to/this/script script trashfile

echo SCRIPT_PID=$PPID > misc.tmp
echo SHELL_PID=$$ >> misc.tmp
echo SHELL_TTY=`/usr/bin/tty | colrm 1 5` >> misc.tmp
mv misc.tmp ready.tmp   # atomic op
while /bin/true ; do sleep 42 ; done
