about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-05-08 16:29:41 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-05-08 16:29:41 +0000
commitd006556c74fa99b0d2ed93fc9ca9b9b96cf82032 (patch)
tree7657ab6ba7b73671ade862efebd7c8298fb3cb78
parent705fd24fd5c64fcf0bd59c0cda29a2125d7199e3 (diff)
downloadzsh-d006556c74fa99b0d2ed93fc9ca9b9b96cf82032.tar.gz
zsh-d006556c74fa99b0d2ed93fc9ca9b9b96cf82032.tar.xz
zsh-d006556c74fa99b0d2ed93fc9ca9b9b96cf82032.zip
11264: Missed bit of doc for 10771.
-rw-r--r--ChangeLog4
-rw-r--r--Doc/Zsh/compat.yo17
2 files changed, 17 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c5201cb14..533f52bd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-08  Bart Schaefer  <schaefer@zsh.org>
+
+	* 11264: Doc/Zsh/compat.yo: Missed bit for 10771.
+
 2000-05-08  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
 	* 11260: Doc/Zsh/options.yo: docs for 11044
diff --git a/Doc/Zsh/compat.yo b/Doc/Zsh/compat.yo
index 529bd4557..619a81f79 100644
--- a/Doc/Zsh/compat.yo
+++ b/Doc/Zsh/compat.yo
@@ -7,7 +7,15 @@ cindex(compatibility)
 cindex(sh, compatibility)
 cindex(ksh, compatibility)
 Zsh tries to emulate bf(sh) or bf(ksh) when it is invoked as
-tt(sh) or tt(ksh) respectively.  In this mode the following
+tt(sh) or tt(ksh) respectively; more precisely, it looks at the first
+letter of the name by which it was invoked, excluding any initial `tt(r)'
+(assumed to stand for `restricted'), and if that is `tt(s)' or `tt(k)' it
+will emulate bf(sh) or bf(ksh).  Furthermore, if invoked as tt(su) (which
+happens on certain systems when the shell is executed by the tt(su)
+command), the shell will try to find an alternative name from the tt(SHELL)
+environment variable and perform emulation based on that.
+
+In bf(sh) and bf(ksh) compatibility modes the following
 parameters are not special and not initialized by the shell:
 tt(ARGC),
 tt(argv),
@@ -32,9 +40,9 @@ The usual zsh startup/shutdown scripts are not executed.  Login shells
 source tt(/etc/profile) followed by tt($HOME/.profile).  If the
 tt(ENV) environment variable is set on invocation, tt($ENV) is sourced
 after the profile scripts.  The value of tt(ENV) is subjected to
-parameter expansion, command substitution, and arithmetic expansion before
-being interpreted as a pathname.  Note that the tt(PRIVILEGED) option
-also affects the execution of startup files.
+parameter expansion, command substitution, and arithmetic expansion
+before being interpreted as a pathname.  Note that the tt(PRIVILEGED)
+option also affects the execution of startup files.
 
 The following options are set if the shell is invoked as tt(sh) or
 tt(ksh):
@@ -44,6 +52,7 @@ tt(NO_BG_NICE),
 tt(NO_EQUALS),
 tt(NO_FUNCTION_ARGZERO),
 tt(GLOB_SUBST),
+tt(NO_GLOBAL_EXPORT),
 tt(NO_HUP),
 tt(INTERACTIVE_COMMENTS),
 tt(KSH_ARRAYS),