diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-07-10 13:08:22 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-07-10 13:08:22 +0000 |
commit | 4a67f2479892fda348546404216270aaaff523ea (patch) | |
tree | 3157f967e4324cdf147aa656c021e55e96f29731 /Doc/Zsh | |
parent | 272256f5d6f4748aed680256589a67713e517383 (diff) | |
download | zsh-4a67f2479892fda348546404216270aaaff523ea.tar.gz zsh-4a67f2479892fda348546404216270aaaff523ea.tar.xz zsh-4a67f2479892fda348546404216270aaaff523ea.zip |
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.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/options.yo | 21 |
1 files changed, 21 insertions, 0 deletions
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) <K> <S>)( +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) |