exec.c (201343) | exec.c (201344) |
---|---|
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 201343 2009-12-31 16:13:33Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/exec.c 201344 2009-12-31 17:44:24Z 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 <stdlib.h> 47 --- 785 unchanged lines hidden (view full) --- 833 834/* 835 * Locate and print what a word is... 836 */ 837 838int 839typecmd(int argc, char **argv) 840{ | 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 <stdlib.h> 47 --- 785 unchanged lines hidden (view full) --- 833 834/* 835 * Locate and print what a word is... 836 */ 837 838int 839typecmd(int argc, char **argv) 840{ |
841 return typecmd_impl(argc, argv, TYPECMD_TYPE, pathval()); | 841 return typecmd_impl(argc, argv, TYPECMD_TYPE, bltinlookup("PATH", 1)); |
842} | 842} |