File: man-substring-exp.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-- 646 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/bash.1
+++ b/bash/doc/bash.1
@@ -2758,6 +2758,9 @@
 below).
 If \fIoffset\fP evaluates to a number less than zero, the value
 is used as an offset from the end of the value of \fIparameter\fP.
+Arithmetic expressions starting with a - must be separated by whitespace
+from the preceding : to be
+distinguished from the \fBUse Default Values\fP expansion.
 If \fIlength\fP evaluates to a number less than zero, and \fIparameter\fP
 is not \fB@\fP and not an indexed or associative array, it is interpreted
 as an offset from the end of the value of \fIparameter\fP rather than