diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2013-10-19 14:29:52 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2013-10-19 14:29:52 -0700 |
commit | ada42926b14b9718b853b3713b02a836f944959d (patch) | |
tree | d6070f89f2f9470f4149dbceea2643293c71633f /Doc | |
parent | 8879c46a4897a0e347455334fc6b6732c203a220 (diff) | |
download | zsh-ada42926b14b9718b853b3713b02a836f944959d.tar.gz zsh-ada42926b14b9718b853b3713b02a836f944959d.tar.xz zsh-ada42926b14b9718b853b3713b02a836f944959d.zip |
31849: document effect of KSH_ZERO_SUBSCRIPT on the argv special array
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Zsh/params.yo | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 97087a1c5..9d951bb38 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -431,9 +431,15 @@ of a shell function, shell script, or the shell itself; see noderef(Invocation), and also noderef(Functions). The parameter var(n), where var(n) is a number, is the var(n)th positional parameter. +The parameter `tt($0)' is a special case, see +noderef(Parameters Set By The Shell). + The parameters tt(*), tt(@) and tt(argv) are arrays containing all the positional parameters; thus `tt($argv[)var(n)tt(])', etc., is equivalent to simply `tt($)var(n)'. +Note that the options tt(KSH_ARRAYS) or tt(KSH_ZERO_SUBSCRIPT) apply +to these arrays as well, so with either of those options set, +`tt(${argv[0]})' is equivalent to `tt($1)' and so on. Positional parameters may be changed after the shell or function starts by using the tt(set) builtin, by assigning to the tt(argv) array, or by direct |