diff options
author | Peter Stephenson <pws@zsh.org> | 2015-05-28 18:32:39 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-05-28 18:32:39 +0100 |
commit | 2b08d0ed6747a4acf44b73068bfafc54ca1d0acf (patch) | |
tree | 6b2ef1ca29d0633ee231e6181a1b0d5e16356691 /Doc/Zsh/options.yo | |
parent | cb596a55d921cb638a3cf0ede3ee60ae13728c10 (diff) | |
download | zsh-2b08d0ed6747a4acf44b73068bfafc54ca1d0acf.tar.gz zsh-2b08d0ed6747a4acf44b73068bfafc54ca1d0acf.tar.xz zsh-2b08d0ed6747a4acf44b73068bfafc54ca1d0acf.zip |
35318: POSIX_BUILTINS behaviour for getopts.
It needs to keep OPTIND, as well as the index within the string pointed to by OPTIND, global in this case.
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r-- | Doc/Zsh/options.yo | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 032423def..4c0ae122f 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -2038,6 +2038,10 @@ tt(unset). In addition, various error conditions associated with the above builtins or tt(exec) cause a non-interactive shell to exit and an interactive shell to return to its top-level processing. + +Furthermore, the tt(getopts) builtin behaves in a POSIX-compatible +fashion in that the associated variable tt(OPTIND) is not made +local to functions. ) pindex(POSIX_IDENTIFIERS) pindex(NO_POSIX_IDENTIFIERS) |