Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site nimbus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!stratus!nimbus!arnold From: arnold@nimbus.UUCP (Arnold Robbins) Newsgroups: net.sources Subject: 'suspend' shell function for BRL Bourne shell with job control Message-ID: <111@nimbus.UUCP> Date: Tue, 12-Mar-85 16:43:45 EST Article-I.D.: nimbus.111 Posted: Tue Mar 12 16:43:45 1985 Date-Received: Thu, 14-Mar-85 04:59:35 EST Distribution: net Organization: Firefighters Extraordinaire, Inc. Lines: 19 Here is a quick shell function that will come in handy for those of you who use the BRL Bourne shell with BSD job control. suspend () { case "$-" in *J*) set +J; kill -18 $$; set -J ;; *) kill -18 $$ ;; esac } Thanks to Doug Gwyn who suggested turning off job control with set +J. -- Arnold Robbins CSNET: arnold@gatech ARPA: arnold%gatech.csnet@csnet-relay.arpa UUCP: { akgua, allegra, hplabs, ihnp4, seismo, ut-sally, }!gatech!arnold Help advance the state of Computer Science: Nuke a PR1ME today!