exec.c (253650) | exec.c (255072) |
---|---|
1/*- 2 * Copyright (c) 1991, 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[] = "@(#)exec.c 8.4 (Berkeley) 6/8/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 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[] = "@(#)exec.c 8.4 (Berkeley) 6/8/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/exec.c 253650 2013-07-25 15:08:41Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/exec.c 255072 2013-08-30 12:09:59Z jilles $"); |
40 41#include <sys/types.h> 42#include <sys/stat.h> 43#include <unistd.h> 44#include <fcntl.h> 45#include <errno.h> 46#include <paths.h> 47#include <stdlib.h> --- 709 unchanged lines hidden (view full) --- 757 758/* 759 * Locate and print what a word is... 760 */ 761 762int 763typecmd(int argc, char **argv) 764{ | 40 41#include <sys/types.h> 42#include <sys/stat.h> 43#include <unistd.h> 44#include <fcntl.h> 45#include <errno.h> 46#include <paths.h> 47#include <stdlib.h> --- 709 unchanged lines hidden (view full) --- 757 758/* 759 * Locate and print what a word is... 760 */ 761 762int 763typecmd(int argc, char **argv) 764{ |
765 if (argc > 2 && strcmp(argv[1], "--") == 0) 766 argc--, argv++; |
|
765 return typecmd_impl(argc, argv, TYPECMD_TYPE, bltinlookup("PATH", 1)); 766} | 767 return typecmd_impl(argc, argv, TYPECMD_TYPE, bltinlookup("PATH", 1)); 768} |