about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-26 09:53:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-26 09:53:21 +0000
commitaa529d0032ed64867fd27431a9c27c999891bbc3 (patch)
treeaec69d9c1eda139520595f02f098fb72ef861acf
parentd5c5a1f9874c62f12788cb4f3c08c1926935633c (diff)
downloadzsh-aa529d0032ed64867fd27431a9c27c999891bbc3.tar.gz
zsh-aa529d0032ed64867fd27431a9c27c999891bbc3.tar.xz
zsh-aa529d0032ed64867fd27431a9c27c999891bbc3.zip
26795: further warning in POSIX_ALIASES
-rw-r--r--ChangeLog6
-rw-r--r--Doc/Zsh/options.yo7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7438d1e81..b7cc750c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-26  Peter Stephenson  <pws@csr.com>
+
+	* 26795: Doc/Zsh/options.yo: further warning in POSIX_ALIASES.
+
 2009-03-25  Peter Stephenson  <pws@csr.com>
 
 	* 26783: Doc/Zsh/compsys.yo, Completion/Base/Completer/.distfiles,
@@ -11493,5 +11497,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4638 $
+* $Revision: 1.4639 $
 *****************************************************
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index d1e1eab52..cdce05aad 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1721,7 +1721,12 @@ ifzman(the section RESERVED WORDS in zmanref(zshmisc)).
 
 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.
+other piece of shell code evaluated as one unit.  Note this may
+cause differences from other shells even when the option is in
+effect.  For example, when running a command with `tt(zsh -c)' the
+entire command argument is parsed in one go, so aliases defined within
+the argument are not available even in later lines.  If in doubt, avoid use
+of aliases in non-interactive code.
 )
 pindex(POSIX_BUILTINS)
 pindex(NO_POSIX_BUILTINS)