From 4a67f2479892fda348546404216270aaaff523ea Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 10 Jul 2006 13:08:22 +0000 Subject: 22544: Improve use of ztype tests for multibyte characters. Add POSIX_IDENTIFIERS option to control allowability of multibyte alphanumeric characters in parameter and module names. --- Doc/Zsh/options.yo | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Doc/Zsh/options.yo') diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 0fb87302e..589ed79cb 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -1204,6 +1204,27 @@ tt(times), tt(trap) and tt(unset). ) +pindex(POSIX_IDENTIFIERS) +cindex(identifiers, non-portable characters in) +cindex(parameter names, non-portable characters in) +item(tt(POSIX_IDENTIFIERS) )( +When this option is set, only the ASCII characters tt(a) to tt(z), tt(A) to +tt(Z), tt(0) to tt(9) and tt(_) may be used in identifiers (names +of shell parameters and modules). + +When the option is unset and multibyte character support is enabled (i.e. it +is compiled in and the option tt(MULTIBYTE) is set), then additionally any +alphanumeric characters in the local character set may be used in +identifiers. Note that scripts and functions written with this feature are +not portable, and also that both options must be set before the script +or function is parsed; setting them during execution is not sufficient +as the syntax var(variable)tt(=)var(value) has already been parsed as +a command rather than an assignment. + +If multibyte character support is not compiled into the shell this option is +ignored; all octets with the top bit set may be used in identifiers. +This is non-standard but is the traditional zsh behaviour. +) pindex(SH_FILE_EXPANSION) cindex(sh, expansion style) cindex(expansion style, sh) -- cgit 1.4.1