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/builtins.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/builtins.yo')
-rw-r--r-- | Doc/Zsh/builtins.yo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 61dc6986f..022921bfa 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -982,7 +982,8 @@ vindex(OPTARG, use of) The first option to be examined may be changed by explicitly assigning to tt(OPTIND). tt(OPTIND) has an initial value of tt(1), and is normally set to tt(1) upon entry to a shell function and restored -upon exit (this is disabled by the tt(POSIX_BUILTINS) option). tt(OPTARG) +upon exit. (The tt(POSIX_BUILTINS) option disables this, and also changes +the way the value is calculated to match other shells.) tt(OPTARG) is not reset and retains its value from the most recent call to tt(getopts). If either of tt(OPTIND) or tt(OPTARG) is explicitly unset, it remains unset, and the index or option argument is not |