1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
# DP: Clarify documentation about substring expansion
--- a/bash/doc/bashref.texi
+++ b/bash/doc/bashref.texi
@@ -1773,6 +1773,9 @@
If @var{offset} evaluates to a number less than zero, the value
is used as an offset from the end of the value of @var{parameter}.
+Arithmetic expressions starting with a - must be separated by whitespace
+from the preceding : to be
+distinguished from the $@{@var{parameter}:@minus{}@var{word}@} expansion.
If @var{length} evaluates to a number less than zero, and @var{parameter}
is not @samp{@@} and not an indexed or associative array, it is interpreted
as an offset from the end of the value of @var{parameter} rather than
|