Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!linus!encore!paradis From: paradis@encore.UUCP (Jim Paradis) Newsgroups: comp.os.minix Subject: Patches to minix shell (5 of 7) - sh3.c Message-ID: <1685@encore.UUCP> Date: Tue, 23-Jun-87 15:24:28 EDT Article-I.D.: encore.1685 Posted: Tue Jun 23 15:24:28 1987 Date-Received: Fri, 26-Jun-87 04:53:15 EDT Organization: Encore Computer Corp., Marlboro, MA Lines: 30 Keywords: minix shell shar fix sh3.c Apply this patch to sh3.c -------------------------------cut here------------------------- 0a1 > #define Extern extern 269c270 < if (t->type == TPAREN) --- > if (t->type == TPAREN) { 270a272 > } 275c277 < if (wp[0] == NULL) --- > if (wp[0] == NULL) { 276a279 > } 526a530,534 > > /* If the file is not executable (i.e. doesn't > * have a valid a.out header) then try it as a > * shell script. > */ 529,530c537,538 < *v = "/bin/sh"; < execve(*v, v, envp); --- > *v = e.linep; > execve("/bin/sh", v, envp);