From 025b27d734217de5e92b0ca726a18c3afc0c4e64 Mon Sep 17 00:00:00 2001 From: pape Date: Mon, 31 Jan 2005 21:19:54 +1100 Subject: Corrected manual entry about ENV and non-interactive shells. --- ChangeLog | 4 ++++ src/dash.1 | 29 ++--------------------------- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/ChangeLog b/ChangeLog index 51e284c..4e7fdd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-31 Gerrit Pape + + * Corrected manual entry about ENV and non-interactive shells. + 2004-11-24 Gerrit Pape * Spell behaviour consistently in manual page. diff --git a/src/dash.1 b/src/dash.1 index fbd8364..fc551eb 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -143,7 +143,7 @@ and if they exist. If the environment variable .Ev ENV -is set on entry to a shell, or is set in the +is set on entry to an interactive shell, or is set in the .Pa .profile of a login shell, the shell next reads commands from the file named in @@ -151,7 +151,7 @@ commands from the file named in Therefore, a user should place commands that are to be executed only at login time in the .Pa .profile -file, and commands that are executed for every shell inside the +file, and commands that are executed for every interactive shell inside the .Ev ENV file. To set the @@ -165,31 +165,6 @@ of your home directory substituting for .Dq .shinit any filename you wish. -Since the -.Ev ENV -file is read for every invocation of the shell, including shell scripts -and non-interactive shells, the following paradigm is useful for -restricting commands in the -.Ev ENV -file to interactive invocations. -Place commands within the -.Dq case -and -.Dq esac -below (these commands are described later): -.Pp -.Bl -item -compact -offset indent -.It -.Li case $- in *i*) -.Bl -item -compact -offset indent -.It -.Li # commands for interactive use only -.It -.Li ... -.El -.It -.Li esac -.El .Pp If command line arguments besides the options have been specified, then the shell treats the first argument as the name of a file from which to -- cgit 1.4.1