File: man-substring-exp-doc.diff

package info (click to toggle)
bash 4.2%2Bdfsg-0.1%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,308 kB
  • sloc: ansic: 452; sh: 418; makefile: 385
file content (14 lines) | stat: -rw-r--r-- 668 bytes parent folder | download
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