eval.c (207783) | eval.c (208630) |
---|---|
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 207783 2010-05-08 14:00:01Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/eval.c 208630 2010-05-28 22:40:24Z 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> --- 1117 unchanged lines hidden (view full) --- 1165{ 1166 return 0; 1167} 1168 1169 1170int 1171execcmd(int argc, char **argv) 1172{ | 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> --- 1117 unchanged lines hidden (view full) --- 1165{ 1166 return 0; 1167} 1168 1169 1170int 1171execcmd(int argc, char **argv) 1172{ |
1173 /* 1174 * Because we have historically not supported any options, 1175 * only treat "--" specially. 1176 */ 1177 if (argc > 1 && strcmp(argv[1], "--") == 0) 1178 argc--, argv++; |
|
1173 if (argc > 1) { 1174 struct strlist *sp; 1175 1176 iflag = 0; /* exit on error */ 1177 mflag = 0; 1178 optschanged(); 1179 for (sp = cmdenviron; sp ; sp = sp->next) 1180 setvareq(sp->text, VEXPORT|VSTACK); --- 30 unchanged lines hidden --- | 1179 if (argc > 1) { 1180 struct strlist *sp; 1181 1182 iflag = 0; /* exit on error */ 1183 mflag = 0; 1184 optschanged(); 1185 for (sp = cmdenviron; sp ; sp = sp->next) 1186 setvareq(sp->text, VEXPORT|VSTACK); --- 30 unchanged lines hidden --- |