summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-02-12 01:23:11 +0000
committerjdp <jdp@FreeBSD.org>1998-02-12 01:23:11 +0000
commit4911b4c5bd7e262b69fb53594c04227f97afee31 (patch)
tree7157bc95f1b7047018dcc1903232d4a649bfaf3f /bin/sh/sh.1
parent0fbf800481760f576d51aee10eefe415ac56ad5b (diff)
downloadFreeBSD-src-4911b4c5bd7e262b69fb53594c04227f97afee31.zip
FreeBSD-src-4911b4c5bd7e262b69fb53594c04227f97afee31.tar.gz
Explicitly describe the rules the shell uses to search for a file
sourced by the "." command.
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.111
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 02b674a..6041947 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
-.\" $Id: sh.1,v 1.17 1997/11/12 04:32:50 jdp Exp $
+.\" $Id: sh.1,v 1.18 1998/01/02 19:23:05 steve Exp $
.\"
.Dd May 5, 1995
.Dt SH 1
@@ -974,6 +974,15 @@ etc).
A null command that returns a 0 (true) exit value.
.It \&. file
The commands in the specified file are read and executed by the shell.
+If
+.Ar file
+contains any
+.Ql /
+characters, it is used as is. Otherwise, the shell searches the
+.Ev PATH
+for the file. If it is not found in the
+.Ev PATH ,
+it is sought in the current working directory.
.It alias [ name[=string] ... ]
If name=string is specified, the shell defines the
alias ``name'' with value ``string''. If just ``name''
OpenPOWER on IntegriCloud