diff options
author | jilles <jilles@FreeBSD.org> | 2011-06-10 22:42:00 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-06-10 22:42:00 +0000 |
commit | 742a97ee0a4a2d4cabdc097c1fed047d490b5ffb (patch) | |
tree | c5fb621bdc139a5db6a325ed51d8cf1472a19da1 /bin/sh/sh.1 | |
parent | 82f98a6104c483238c9fcd8df34533f404ba26e6 (diff) | |
download | FreeBSD-src-742a97ee0a4a2d4cabdc097c1fed047d490b5ffb.zip FreeBSD-src-742a97ee0a4a2d4cabdc097c1fed047d490b5ffb.tar.gz |
sh: Do parameter expansion on ENV before using it.
This is required by POSIX, and allows things like ENV=\$HOME/.shrc.
Note that tilde expansion is explicitly not performed.
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r-- | bin/sh/sh.1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 0ce07bd..f6682e6 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 June 9, 2011 +.Dd June 10, 2011 .Dt SH 1 .Os .Sh NAME @@ -124,8 +124,8 @@ If the environment variable .Ev ENV is set on entry to a shell, or is set in the .Pa .profile -of a login shell, the shell then reads commands from the file named in -.Ev ENV . +of a login shell, the shell then subjects its value to parameter expansion +and arithmetic expansion and reads commands from the named file. Therefore, a user should place commands that are to be executed only at login time in the .Pa .profile |