migration from private to rsa
[external/bash.git] / debian / patches / man-substring-exp-doc.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/bashref.texi~      2004-08-28 15:10:17.000000000 +0200
21 +++ bash/doc/bashref.texi       2004-08-28 18:27:16.000000000 +0200
22 @@ -1575,6 +1575,9 @@
23  @var{length} must evaluate to a number greater than or equal to zero.
24  If @var{offset} evaluates to a number less than zero, the value
25  is used as an offset from the end of the value of @var{parameter}.
26 +Arithmetic expressions starting with a - must be separated by whitespace
27 +from the preceding : to be
28 +distinguished from the $@{@var{parameter}:@minus{}@var{word}@} expansion.
29  If @var{parameter} is @samp{@@}, the result is @var{length} positional
30  parameters beginning at @var{offset}.
31  If @var{parameter} is an array name indexed by @samp{@@} or @samp{*},