[1462] in Athena Bugs

home help back first fref pref prev next nref lref last post

(VS2) Version 6.0R: csh job control in a shell script

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Fri Dec 2 08:41:07 1988

Date: Fri, 2 Dec 88 08:40:50 EST
From: Jonathan I. Kamens <jik@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System type, version:	(VS2) Version 6.0R
System name:		binkley
What's wrong:

The following shell script:

#!/bin/csh -f
zaway &
echo -n "Hit return when you're back: "
set foo = $<
kill -9 %zaway

Produces this when I run it:

binkley% leave
[1] 3983
Hit return when you're back: 
%zaway: No such process

Similar behavior results when I use %1.

What should have happened:

Job control should work.  I suspect that this has something to do with
the fact that the shell is not interactive, but that really shouldn't
make a difference.

  --> Jonathan Kamens
      Project Athena Watchmaker
      SIPB (Student Information Processing Board) Member
      Volunteer OLC Consultant
      jik@ATHENA.MIT.EDU

P.S. Don't ask why I'm writing a silly shell script like that -- the
     original one did something more interesting; this is just an example.

home help back first fref pref prev next nref lref last post