eval.c (272575) | eval.c (272983) |
---|---|
1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/eval.c 272575 2014-10-05 21:51:36Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/eval.c 272983 2014-10-12 13:12:06Z jilles $"); |
40 41#include <paths.h> 42#include <signal.h> 43#include <stdlib.h> 44#include <unistd.h> 45#include <sys/resource.h> 46#include <sys/wait.h> /* For WIFSIGNALED(status) */ 47#include <errno.h> --- 115 unchanged lines hidden (view full) --- 163 setinputstring(s, 1); 164 while ((n = parsecmd(0)) != NEOF) { 165 if (n != NULL && !nflag) { 166 if (flags_exit && preadateof()) 167 evaltree(n, flags | EV_EXIT); 168 else 169 evaltree(n, flags); 170 any = 1; | 40 41#include <paths.h> 42#include <signal.h> 43#include <stdlib.h> 44#include <unistd.h> 45#include <sys/resource.h> 46#include <sys/wait.h> /* For WIFSIGNALED(status) */ 47#include <errno.h> --- 115 unchanged lines hidden (view full) --- 163 setinputstring(s, 1); 164 while ((n = parsecmd(0)) != NEOF) { 165 if (n != NULL && !nflag) { 166 if (flags_exit && preadateof()) 167 evaltree(n, flags | EV_EXIT); 168 else 169 evaltree(n, flags); 170 any = 1; |
171 if (evalskip) 172 break; |
|
171 } 172 popstackmark(&smark); 173 setstackmark(&smark); 174 } 175 popfile(); 176 popstackmark(&smark); 177 if (!any) 178 exitstatus = 0; --- 1209 unchanged lines hidden --- | 173 } 174 popstackmark(&smark); 175 setstackmark(&smark); 176 } 177 popfile(); 178 popstackmark(&smark); 179 if (!any) 180 exitstatus = 0; --- 1209 unchanged lines hidden --- |