Path: tut!enea!mcvax!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
Keywords: minix shell shar fix sh3.c
Message-ID: <1685@encore.UUCP>
Date: 23 Jun 87 19:24:28 GMT
Organization: Encore Computer Corp., Marlboro, MA
Lines: 30

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);
