From 6466945a673307ae4e1580816828d43f9f196a07 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Thu, 12 Feb 1998 01:23:11 +0000 Subject: [PATCH] Explicitly describe the rules the shell uses to search for a file sourced by the "." command. --- bin/sh/sh.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 02b674a7cdc..6041947dcd2 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''