chiark / gitweb /
bash (4.1-3) unstable; urgency=low
[bash.git] / debian / patches / man-arithmetic.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: document deprecated syntax for arithmetic evaluation.
19
20 diff -urb bash.orig/doc/bash.1 bash/doc/bash.1
21 --- bash.orig/doc/bash.1        2003-09-25 21:42:45.000000000 +0200
22 +++ bash/doc/bash.1     2003-09-28 00:24:17.000000000 +0200
23 @@ -2533,6 +2533,9 @@
24  \fB$((\fP\fIexpression\fP\fB))\fP
25  .RE
26  .PP
27 +The old format \fB$[\fP\fIexpression\fP\fB]\fP is deprecated and will
28 +be removed in upcoming versions of bash.
29 +.PP
30  The
31  .I expression
32  is treated as if it were within double quotes, but a double quote