summary refs log tree commit diff
diff options
context:
space:
mode:
authorpape <pape@smarden.org>2005-01-31 21:19:54 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2005-09-26 18:33:03 +1000
commit025b27d734217de5e92b0ca726a18c3afc0c4e64 (patch)
treef0640f0a51eaf9119f621eadebe1de988cfc3da6
parentRemoved debian files. (diff)
downloaddash-025b27d734217de5e92b0ca726a18c3afc0c4e64.tar.gz
dash-025b27d734217de5e92b0ca726a18c3afc0c4e64.zip
Corrected manual entry about ENV and non-interactive shells.
-rw-r--r--ChangeLog4
-rw-r--r--src/dash.129
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 <pape@smarden.org>
+
+	* Corrected manual entry about ENV and non-interactive shells.
+
 2004-11-24  Gerrit Pape <pape@smarden.org>
 
 	* 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
2-06-08 09:07:06 -0400'>2022-06-08Add Maiden, Mother, CroneJune McEnroe Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio. 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe