summaryrefslogtreecommitdiff
path: root/debian/patches/patches/man-test2.dpatch
blob: f2cc08aa355f7be877f8a35f425287fb5d7ab16b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/sh -e

if [ $# -eq 3 -a "$2" = '-d' ]; then
    pdir="-d $3"
elif [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1
esac
exit 0

# DP: Document handling of parameters of the test builtin.

--- bash/builtins/test.def.orig	2008-11-29 17:41:32.000000000 +0000
+++ bash/builtins/test.def	2008-11-29 17:44:25.000000000 +0000
@@ -94,6 +94,9 @@
 less-than, less-than-or-equal, greater-than, or greater-than-or-equal
 than ARG2.
 
+See the bash manual page bash(1) for the handling of parameters (i.e.
+missing parameters).
+
 Exit Status:
 Returns success if EXPR evaluates to true; fails if EXPR evaluates to
 false or an invalid argument is given.
--- bash/doc/bash.1.~3~	2009-12-30 15:45:17.063586386 +0100
+++ bash/doc/bash.1	2009-12-30 15:53:33.021085355 +0100
@@ -3843,6 +3843,10 @@
 .if n .sp 1
 When used with \fB[[\fP, The \fB<\fP and \fB>\fP operators sort
 lexicographically using the current locale.
+.PP
+See the description of the \fItest\fP builtin command (section SHELL
+BUILTIN COMMANDS below) for the handling of parameters (i.e.
+missing parameters).
 .sp 1
 .PD 0
 .TP