diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-05-31 20:47:45 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-05-31 20:47:45 +0000 |
commit | 98cc90e48d34b08bc1a44e8e8cba71d6c44f7f89 (patch) | |
tree | fa6956eb36e1624aa43a06a70e8d45b1af95f0a4 /bin/ksh/ksh.1 | |
parent | 2d1a919b123ea86ab283ffdcd54e1385cf39d6b8 (diff) |
Only process ENV when in interactive mode as SU says. Started by
tedu to fix make -j, SU thing spotted by naddy@; ok millert@ @tedu
jmc@ for the man page bit.
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r-- | bin/ksh/ksh.1 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1 index afed6a6e1a0..47bfc5e5185 100644 --- a/bin/ksh/ksh.1 +++ b/bin/ksh/ksh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ksh.1,v 1.119 2007/05/31 19:19:14 jmc Exp $ +.\" $OpenBSD: ksh.1,v 1.120 2007/05/31 20:47:44 otto Exp $ .\" .\" Public Domain .\" @@ -161,7 +161,8 @@ otherwise, the basename the shell was called with (i.e. argv[0]) is used. .Pp If the .Ev ENV -parameter is set when the shell starts (or, in the case of login shells, +parameter is set when an interactive shell starts (or, +in the case of login shells, after any profiles are processed), its value is subjected to parameter, command, arithmetic, and tilde .Pq Sq ~ @@ -181,9 +182,7 @@ may be set and exported (see below) in is then free to specify instructions for interactive shells. For example, the global configuration file may be sourced: .Bd -literal -offset indent -if [ -o interactive ]; then \&. /etc/ksh.kshrc -fi .Ed .Pp The above strategy may be employed to keep |