From 8e25f4449f75fa46ed130a8dc0a20b3744eb61eb Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 3 Mar 2009 17:26:03 +0000 Subject: 26675: add POSIX_ALIASES option --- Doc/Zsh/options.yo | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'Doc') 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) )( +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) -- cgit 1.4.1