Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site warwick.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!warwick!req From: req@warwick.UUCP (Russell Quin) Newsgroups: net.bugs.4bsd Subject: shell scripts failing Message-ID: <297@snow.warwick.UUCP> Date: Wed, 11-Sep-85 19:18:09 EDT Article-I.D.: snow.297 Posted: Wed Sep 11 19:18:09 1985 Date-Received: Sun, 22-Sep-85 06:14:59 EDT Reply-To: req@snow.UUCP (Russell Quin) Organization: Computer Science, Warwick University, UK Lines: 29 Feet: bare Xpath: warwick snow snow ubu Problem: (on 4.1c bsd, somewhat modified, on a VAX 11/750) Shell scripts stopping working whilst compiled programs (C, etc) were OK. I have been unable to reproduce the effect reliably, but it has only ever happened in conjunction with rn. What happens is that I try to use rn's `r' key (or `R') which invokes Rnmail, a shell script. Except, it doesn't. Instead, rn returns immediately with a prompt and the message 'returning to cbreak mode' that it normally gives when Rnmail is finished. At first I just thought that rn had got bored of my mail, but when I then shelled out (the `!' command), I found that all was OK as long as I didn't try to use shell scripts -- which failed in the same way as Rnmail, returning immediately. "/bin/sh file" didn't work, but "/bin/sh < file" was OK; I even tried (unsuccessfully) "/bin/sh -i < /dev/tty > /dev/tty 2>/dev/tty", but, as ps confirmed, the shell hadn't become detached. Csh, however, worked fine. PATH was set OK, and when I suspended rn (^Z) and used another shell, that was fine. (We have a "process monitor" that sits outside sh or a local shell (wash) to give job control). Sorry to be so vague & verbose; if you have any ideas about things that make shell scripts (with or without "#! /bin/sh") fail without affecting things like cat or ls, then let me know!!!! I am baffled!!! - Russell -- ... mcvax!ukc!warwick!req (req@warwick.UUCP) "If no small boy smeared with honey can be found, it may be necessary to take an ordinary small boy and smear him, which should be a pleasure."