diff options
author | dana <dana@dana.is> | 2021-05-03 18:08:11 -0500 |
---|---|---|
committer | dana <dana@dana.is> | 2021-05-03 18:11:38 -0500 |
commit | c23a0d84b029676832ea0f2eeb0caa8c47d0500d (patch) | |
tree | 2d404a5367fb6b02b895a53b017d7aa1ffc0ab6e /Doc/Zsh/options.yo | |
parent | 2da0d8b52fc90ce82891ae161fe6df89111c5e5c (diff) | |
download | zsh-c23a0d84b029676832ea0f2eeb0caa8c47d0500d.tar.gz zsh-c23a0d84b029676832ea0f2eeb0caa8c47d0500d.tar.xz zsh-c23a0d84b029676832ea0f2eeb0caa8c47d0500d.zip |
48614: getopts: Calculate OPTIND according to POSIX_BUILTINS
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r-- | Doc/Zsh/options.yo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 6e862fae8..546b16b65 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -2249,7 +2249,8 @@ command found in the path. Furthermore, the tt(getopts) builtin behaves in a POSIX-compatible fashion in that the associated variable tt(OPTIND) is not made -local to functions. +local to functions, and its value is calculated differently to match +other shells. Moreover, the warning and special exit code from tt([[ -o )var(non_existent_option)tt( ]]) are suppressed. |