3 if [ $# -eq 3 -a "$2" = '-d' ]; then
5 elif [ $# -ne 1 ]; then
6 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10 -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
11 -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
13 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18 # DP: Clarify documentation about substring expansion
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
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 *,