| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
TEMPFILE=$(mktemp -p "") |
| 4 |
echo $TEMPFILE |
| 5 |
trap "rm -rf $TEMPFILE" HUP INT QUIT TERM STOP PWR EXIT |
| 6 |
|
| 7 |
# test if attempting to run sensible-editor recursively is correctly ignored |
| 8 |
VISUAL='sensible-editor --' EDITOR=true timeout 0.2 sensible-editor "$TEMPFILE" |