#!/bin/sh # # safely - a command on ^C without stopping its environment # # $Id$ # the use case prompting this: # # locate .mp3 | shufflin | xargs -d'\n' -I%s safely play "%s" earwax # # and now I can ^C to skip to the next song set -m "$@" & trap 'echo bye; kill -- -$$' INT fg