summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Doc/Zsh/expn.yo6
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