about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-03 17:26:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-03 17:26:03 +0000
commit8e25f4449f75fa46ed130a8dc0a20b3744eb61eb (patch)
tree6b445e99cf41c59c4c72c75162d380ae100187fc /Doc
parent919f7b12ad4cd6e4b6745e7ea647b9bf0e58c70c (diff)
downloadzsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.gz
zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.xz
zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.zip
26675: add POSIX_ALIASES option
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/options.yo37
1 files changed, 37 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index c6b4c5d69..70038c8c6 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1708,6 +1708,43 @@ is not and will replace the first element of the array.
 This option is for compatibility with older versions of the shell and
 is not recommended in new code.
 )
+pindex(POSIX_ALIASES)
+pindex(NO_POSIX_ALIASES)
+pindex(POSIXALIASES)
+pindex(NOPOSIXALIASES)
+item(tt(POSIX_ALIASES) <K> <S>)(
+When this option is set, reserved words are not candidates for
+alias expansion:  it is still possible to declare any of them as an alias,
+but the alias will never be expanded.  Reserved words are
+tt(!),
+tt([[),
+tt({),
+tt(}),
+tt(case),
+tt(coproc),
+tt(do),
+tt(done),
+tt(elif),
+tt(else),
+tt(end),
+tt(esac),
+tt(fi),
+tt(for),
+tt(foreach),
+tt(function),
+tt(if),
+tt(nocorrect),
+tt(repeat),
+tt(select),
+tt(then),
+tt(time),
+tt(until),
+tt(while).
+
+Alias expansion takes place while text is being read; hence when this
+option is set it does not take effect until the end of any function or
+other piece of shell code evaluated as one unit.
+)
 pindex(POSIX_BUILTINS)
 pindex(NO_POSIX_BUILTINS)
 pindex(POSIXBUILTINS)