aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2009-12-31 17:44:24 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2009-12-31 17:44:24 +0000
commit0fb60646df72b553faacf81ebf3c52d76a784a78 (patch)
treeced57aab1f0f22eec1c1982336d0fcd7e9609583 /bin
parent06a8a57f826bac56e4564e3eb16b7ba67e95e2a3 (diff)
downloadsrc-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.c2
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));
}