diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-12-31 17:44:24 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-12-31 17:44:24 +0000 |
commit | 0fb60646df72b553faacf81ebf3c52d76a784a78 (patch) | |
tree | ced57aab1f0f22eec1c1982336d0fcd7e9609583 /bin | |
parent | 06a8a57f826bac56e4564e3eb16b7ba67e95e2a3 (diff) | |
download | src-0fb60646df72b553faacf81ebf3c52d76a784a78.tar.gz src-0fb60646df72b553faacf81ebf3c52d76a784a78.zip |
sh: Use PATH= assignment in type.
Example:
PATH=/var/empty; PATH=/bin type ls
Notes
Notes:
svn path=/head/; revision=201344
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/exec.c b/bin/sh/exec.c index 02cf91ebac71..c9f9a2634756 100644 --- a/bin/sh/exec.c +++ b/bin/sh/exec.c @@ -838,5 +838,5 @@ typecmd_impl(int argc, char **argv, int cmd, const char *path) int typecmd(int argc, char **argv) { - return typecmd_impl(argc, argv, TYPECMD_TYPE, pathval()); + return typecmd_impl(argc, argv, TYPECMD_TYPE, bltinlookup("PATH", 1)); } |