summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-01-14 16:40:50 +0000
committerjilles <jilles@FreeBSD.org>2013-01-14 16:40:50 +0000
commit705fd8516acf0369c2f98c092137707eab99e0a9 (patch)
tree6c1022edf9abd2b90fae6d44c095e7a6a85a3f59 /bin/sh/sh.1
parent7ed3ee172aa11cd143c08046767a78f1378e8cd6 (diff)
downloadFreeBSD-src-705fd8516acf0369c2f98c092137707eab99e0a9.zip
FreeBSD-src-705fd8516acf0369c2f98c092137707eab99e0a9.tar.gz
sh: Simplify cd-hash interaction.
Instead of rechecking relative paths for all hashed utilities after a cd, track if any utility in cmdtable depends on a relative path in PATH. If there is such a utility, cd clears the entire table. As a result, the '*' in hash no longer happens.
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.16
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 1750267..83cf7c2 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd July 15, 2012
+.Dd January 14, 2013
.Dt SH 1
.Os
.Sh NAME
@@ -2219,10 +2219,6 @@ The shell maintains a hash table which remembers the locations of commands.
With no arguments whatsoever, the
.Ic hash
command prints out the contents of this table.
-Entries which have not been looked at since the last
-.Ic cd
-command are marked with an asterisk;
-it is possible for these entries to be invalid.
.Pp
With arguments, the
.Ic hash
OpenPOWER on IntegriCloud