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/bashref.texi~ 2004-08-28 15:10:17.000000000 +0200
21 +++ bash/doc/bashref.texi 2004-08-28 18:27:16.000000000 +0200
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{*},