Initialize Tizen 2.3
[external/bash.git] / debian / patches / man-substring-exp.dpatch
1 #! /bin/sh -e
2
3 if [ $# -eq 3 -a "$2" = '-d' ]; then
4     pdir="-d $3"
5 elif [ $# -ne 1 ]; then
6     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
7     exit 1
8 fi
9 case "$1" in
10     -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
11     -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
12     *)
13         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14         exit 1
15 esac
16 exit 0
17
18 # DP: Clarify documentation about substring expansion
19
20 --- bash/doc/bash.1~    2004-08-28 15:10:17.000000000 +0200
21 +++ bash/doc/bash.1     2004-08-28 18:25:23.000000000 +0200
22 @@ -2356,6 +2356,9 @@
23  \fIlength\fP must evaluate to a number greater than or equal to zero.
24  If \fIoffset\fP evaluates to a number less than zero, the value
25  is used as an offset from the end of the value of \fIparameter\fP.
26 +Arithmetic expressions starting with a - must be separated by whitespace
27 +from the preceding : to be
28 +distinguished from the \fBUse Default Values\fP expansion.
29  If \fIparameter\fP is \fB@\fP, the result is \fIlength\fP positional
30  parameters beginning at \fIoffset\fP.
31  If \fIparameter\fP is an array name indexed by @ or *,