diff options
author | Peter Stephenson <pws@zsh.org> | 2016-09-14 12:17:38 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-09-14 12:17:38 +0100 |
commit | d0f9150530a872f04c88e7039646d18e3eaca135 (patch) | |
tree | 38afa1ecfaf82514ea0364d5380c396a4d9c899e | |
parent | a4b8ee13be494c8732c0348857befe87951a058b (diff) | |
download | zsh-d0f9150530a872f04c88e7039646d18e3eaca135.tar.gz zsh-d0f9150530a872f04c88e7039646d18e3eaca135.tar.xz zsh-d0f9150530a872f04c88e7039646d18e3eaca135.zip |
unposted: small documentation tweaks
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Doc/Zsh/expn.yo | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 357782c2b..5ef7678a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-09-14 Peter Stephenson <p.stephenson@samsung.com> + * unposted: Doc/Zsh/expn.yo: small documentation tweaks. + * zsh-users/21903: Src/subst.c, Src/zsh.h, Test/D04parameter.ztst: ${...?...} in interactive shell should abort to top level, not just current command. diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index ecb1877a2..b73151698 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -745,7 +745,7 @@ character of tt($foo) if the substitution would otherwise return a scalar, or the array starting at the fourth element if tt($foo) would return an array. Note that with the option tt(KSH_ARRAYS) tt($foo) always returns a scalar (regardless of the use of the offset syntax) and a form -such as tt($foo[*]:3) is required to extract elements of an array named +such as tt(${foo[*]:3}) is required to extract elements of an array named tt(foo). If var(offset) is negative, the tt(-) may not appear immediately @@ -761,8 +761,8 @@ expression tt(${var: offs}) does work, retrieving the offset from tt($offs). For further compatibility with other shells there is a special case -for array offset 0. This usually accesses to the -first element of the array. However, if the substitution refers the +for array offset 0. This usually accesses the +first element of the array. However, if the substitution refers to the positional parameter array, e.g. tt($@) or tt($*), then offset 0 instead refers to tt($0), offset 1 refers to tt($1), and so on. In other words, the positional parameter array is effectively extended by |